org.bouncycastle.bcpg

Class DSASecretBCPGKey

Implemented Interfaces:
BCPGKey

public class DSASecretBCPGKey
extends BCPGObject
implements BCPGKey

base class for an DSA Public 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

See Also:
BCPGKey.getEncoded()


getFormat

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

See Also:
BCPGKey.getFormat()


getX

public BigInteger getX()

Returns:
x