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
IOExceptionpublic ElGamalPublicBCPGKey(BigInteger p, BigInteger g, BigInteger y)
public String getFormat()
getFormat in interface BCPGKeyBCPGKey.getFormat()public byte[] getEncoded()
getEncoded in interface BCPGKeygetEncoded in class BCPGObjectBCPGKey.getEncoded()public BigInteger getP()
public BigInteger getG()
public BigInteger getY()
public void encode(BCPGOutputStream out) throws IOException
encode in class BCPGObjectIOException