public class ElGamalSecretBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
ElGamalSecretBCPGKey(BCPGInputStream in) |
ElGamalSecretBCPGKey(java.math.BigInteger x) |
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 |
getX() |
public ElGamalSecretBCPGKey(BCPGInputStream in) throws java.io.IOException
in
- java.io.IOException
public ElGamalSecretBCPGKey(java.math.BigInteger x)
x
- public java.lang.String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public java.math.BigInteger getX()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in interface org.bouncycastle.util.Encodable
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public void encode(BCPGOutputStream out) throws java.io.IOException
encode
in class BCPGObject
java.io.IOException