org.bouncycastle.bcpg

Class ElGamalPublicBCPGKey

public class ElGamalPublicBCPGKey extends BCPGObject implements BCPGKey

base class for an ElGamal Public Key.
Constructor Summary
ElGamalPublicBCPGKey(BCPGInputStream in)
ElGamalPublicBCPGKey(BigInteger p, BigInteger g, BigInteger y)
Method Summary
voidencode(BCPGOutputStream out)
byte[]getEncoded()
return the standard PGP encoding of the key.
StringgetFormat()
return "PGP"
BigIntegergetG()
BigIntegergetP()
BigIntegergetY()

Constructor Detail

ElGamalPublicBCPGKey

public ElGamalPublicBCPGKey(BCPGInputStream in)

ElGamalPublicBCPGKey

public ElGamalPublicBCPGKey(BigInteger p, BigInteger g, BigInteger y)

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

getG

public BigInteger getG()

getP

public BigInteger getP()

getY

public BigInteger getY()