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