public class DSAPublicBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
DSAPublicBCPGKey(BCPGInputStream in) |
DSAPublicBCPGKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
java.lang.String |
getFormat()
return "PGP"
|
java.math.BigInteger |
getG() |
java.math.BigInteger |
getP() |
java.math.BigInteger |
getQ() |
java.math.BigInteger |
getY() |
public DSAPublicBCPGKey(BCPGInputStream in) throws java.io.IOException
in
- the stream to read the packet from.java.io.IOException
public DSAPublicBCPGKey(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger y)
public java.lang.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 java.io.IOException
encode
in class BCPGObject
java.io.IOException
public java.math.BigInteger getG()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getY()