Package org.bouncycastle.bcpg
Class DSAPublicBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.DSAPublicBCPGKey
- All Implemented Interfaces:
BCPGKey
,org.bouncycastle.util.Encodable
base class for a DSA Public Key.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DSAPublicBCPGKey
- Parameters:
in
- the stream to read the packet from.- Throws:
IOException
-
DSAPublicBCPGKey
-
-
Method Details
-
getFormat
return "PGP" -
getEncoded
public byte[] getEncoded()return the standard PGP encoding of the key.- Specified by:
getEncoded
in interfaceBCPGKey
- Specified by:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Overrides:
getEncoded
in classBCPGObject
- Returns:
- byte[]
- See Also:
-
encode
- Specified by:
encode
in classBCPGObject
- Throws:
IOException
-
getG
- Returns:
- g
-
getP
- Returns:
- p
-
getQ
- Returns:
- q
-
getY
- Returns:
- g
-