org.bouncycastle.bcpg

Class DSASecretBCPGKey

Implemented Interfaces:
BCPGKey

public class DSASecretBCPGKey
extends BCPGObject
implements BCPGKey

base class for a DSA Secret Key.

Constructor Summary

DSASecretBCPGKey(BigInteger x)
DSASecretBCPGKey(BCPGInputStream in)

Method Summary

void
encode(BCPGOutputStream out)
byte[]
getEncoded()
return the standard PGP encoding of the key.
String
getFormat()
return "PGP"
BigInteger
getX()

Methods inherited from class org.bouncycastle.bcpg.BCPGObject

encode, getEncoded

Constructor Details

DSASecretBCPGKey

public DSASecretBCPGKey(BigInteger x)
Parameters:
x -

DSASecretBCPGKey

public DSASecretBCPGKey(BCPGInputStream in)
            throws IOException
Parameters:
in -

Method Details

encode

public void encode(BCPGOutputStream out)
            throws IOException
Overrides:
encode in interface BCPGObject

getEncoded

public byte[] getEncoded()
return the standard PGP encoding of the key.
Specified by:
getEncoded in interface BCPGKey
Overrides:
getEncoded in interface BCPGObject

getFormat

public String getFormat()
return "PGP"
Specified by:
getFormat in interface BCPGKey

getX

public BigInteger getX()
Returns:
x