org.bouncycastle.bcpg

Class ElGamalSecretBCPGKey

Implemented Interfaces:
BCPGKey

public class ElGamalSecretBCPGKey
extends BCPGObject
implements BCPGKey

base class for an ElGamal Secret Key.

Constructor Summary

ElGamalSecretBCPGKey(BigInteger x)
ElGamalSecretBCPGKey(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

ElGamalSecretBCPGKey

public ElGamalSecretBCPGKey(BigInteger x)
Parameters:
x -

ElGamalSecretBCPGKey

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