org.bouncycastle.bcpg
Class DSAPublicBCPGKey
java.lang.Object
|
+--org.bouncycastle.bcpg.BCPGObject
|
+--org.bouncycastle.bcpg.DSAPublicBCPGKey
- public class DSAPublicBCPGKey
- extends BCPGObject
- implements BCPGKey
base class for an DSA Public Key.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DSAPublicBCPGKey
public DSAPublicBCPGKey(BCPGInputStream in)
throws java.io.IOException
- Parameters:
n
- the moduluse
- the public exponent
DSAPublicBCPGKey
public DSAPublicBCPGKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
getFormat
public java.lang.String getFormat()
- return "PGP"
- Specified by:
- getFormat in interface BCPGKey
- See Also:
BCPGKey.getFormat()
getEncoded
public byte[] getEncoded()
- return the standard PGP encoding of the key.
- Specified by:
- getEncoded in interface BCPGKey
- Overrides:
- getEncoded in class BCPGObject
- See Also:
BCPGKey.getEncoded()
encode
public void encode(BCPGOutputStream out)
throws java.io.IOException
- Overrides:
- encode in class BCPGObject
getG
public java.math.BigInteger getG()
- Returns:
- g
getP
public java.math.BigInteger getP()
- Returns:
- p
getQ
public java.math.BigInteger getQ()
- Returns:
- q
getY
public java.math.BigInteger getY()
- Returns:
- g