public class ElGamalPublicBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
ElGamalPublicBCPGKey(BCPGInputStream in) |
ElGamalPublicBCPGKey(BigInteger p,
BigInteger g,
BigInteger y) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
String |
getFormat()
return "PGP"
|
BigInteger |
getG() |
BigInteger |
getP() |
BigInteger |
getY() |
public ElGamalPublicBCPGKey(BCPGInputStream in) throws IOException
IOException
public ElGamalPublicBCPGKey(BigInteger p, BigInteger g, BigInteger y)
public String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in interface org.bouncycastle.util.Encodable
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public BigInteger getP()
public BigInteger getG()
public BigInteger getY()
public void encode(BCPGOutputStream out) throws IOException
encode
in class BCPGObject
IOException