public class DSAPublicBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
DSAPublicBCPGKey(BCPGInputStream in) |
DSAPublicBCPGKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y) |
Modifier and Type | Method and Description |
---|---|
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() |
public DSAPublicBCPGKey(BCPGInputStream in) throws IOException
in
- the stream to read the packet from.IOException
public DSAPublicBCPGKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y)
public String getFormat()
getFormat
in interface BCPGKey
BCPGKey.getFormat()
public byte[] getEncoded()
getEncoded
in interface BCPGKey
getEncoded
in interface org.bouncycastle.util.Encodable
getEncoded
in class BCPGObject
BCPGKey.getEncoded()
public void encode(BCPGOutputStream out) throws IOException
encode
in class BCPGObject
IOException
public BigInteger getG()
public BigInteger getP()
public BigInteger getQ()
public BigInteger getY()