org.bouncycastle.bcpg

Class DSAPublicBCPGKey

Implemented Interfaces:
BCPGKey

public class DSAPublicBCPGKey
extends BCPGObject
implements BCPGKey

base class for a DSA Public Key.

Constructor Summary

DSAPublicBCPGKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y)
DSAPublicBCPGKey(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
getQ()
BigInteger
getY()

Methods inherited from class org.bouncycastle.bcpg.BCPGObject

encode, getEncoded

Constructor Details

DSAPublicBCPGKey

public DSAPublicBCPGKey(BigInteger p,
                        BigInteger q,
                        BigInteger g,
                        BigInteger y)

DSAPublicBCPGKey

public DSAPublicBCPGKey(BCPGInputStream in)
            throws IOException
Parameters:
in - the stream to read the packet from.

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()
Returns:
g

getP

public BigInteger getP()
Returns:
p

getQ

public BigInteger getQ()
Returns:
q

getY

public BigInteger getY()
Returns:
g