org.bouncycastle.bcpg

Class ElGamalSecretBCPGKey

public class ElGamalSecretBCPGKey extends BCPGObject implements BCPGKey

base class for an ElGamal Secret Key.
Constructor Summary
ElGamalSecretBCPGKey(BCPGInputStream in)
ElGamalSecretBCPGKey(BigInteger x)
Method Summary
voidencode(BCPGOutputStream out)
byte[]getEncoded()
return the standard PGP encoding of the key.
StringgetFormat()
return "PGP"
BigIntegergetX()

Constructor Detail

ElGamalSecretBCPGKey

public ElGamalSecretBCPGKey(BCPGInputStream in)

Parameters: in

Throws: IOException

ElGamalSecretBCPGKey

public ElGamalSecretBCPGKey(BigInteger x)

Parameters: x

Method Detail

encode

public void encode(BCPGOutputStream out)

getEncoded

public byte[] getEncoded()
return the standard PGP encoding of the key.

See Also: getEncoded

getFormat

public String getFormat()
return "PGP"

See Also: getFormat

getX

public BigInteger getX()