org.bouncycastle.bcpg

Class DSAPublicBCPGKey

public class DSAPublicBCPGKey extends BCPGObject implements BCPGKey

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

Constructor Detail

DSAPublicBCPGKey

public DSAPublicBCPGKey(BCPGInputStream in)

Parameters: in the stream to read the packet from.

DSAPublicBCPGKey

public DSAPublicBCPGKey(BigInteger p, BigInteger q, 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()

Returns: g

getP

public BigInteger getP()

Returns: p

getQ

public BigInteger getQ()

Returns: q

getY

public BigInteger getY()

Returns: g