org.bouncycastle.bcpg

Class ElGamalPublicBCPGKey

Implemented Interfaces:
BCPGKey

public class ElGamalPublicBCPGKey
extends BCPGObject
implements BCPGKey

base class for an ElGamal Public Key.

Constructor Summary

ElGamalPublicBCPGKey(BigInteger p, BigInteger g, BigInteger y)
ElGamalPublicBCPGKey(BCPGInputStream in)

Method Summary

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

Methods inherited from class org.bouncycastle.bcpg.BCPGObject

encode, getEncoded

Constructor Details

ElGamalPublicBCPGKey

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

ElGamalPublicBCPGKey

public ElGamalPublicBCPGKey(BCPGInputStream in)
            throws IOException

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

getG

public BigInteger getG()

getP

public BigInteger getP()

getY

public BigInteger getY()