org.bouncycastle.bcpg

Class DSASecretBCPGKey

public class DSASecretBCPGKey extends BCPGObject implements BCPGKey

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

Constructor Detail

DSASecretBCPGKey

public DSASecretBCPGKey(BCPGInputStream in)

Parameters: in

Throws: IOException

DSASecretBCPGKey

public DSASecretBCPGKey(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()

Returns: x