org.bouncycastle.bcpg
Class DSASecretBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.DSASecretBCPGKey
- All Implemented Interfaces:
- BCPGKey
public class DSASecretBCPGKey
- extends BCPGObject
- implements BCPGKey
base class for a DSA Secret Key.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSASecretBCPGKey
public DSASecretBCPGKey(BCPGInputStream in)
throws java.io.IOException
- Parameters:
in -
- Throws:
java.io.IOException
DSASecretBCPGKey
public DSASecretBCPGKey(java.math.BigInteger x)
- Parameters:
x -
getFormat
public java.lang.String getFormat()
- return "PGP"
- Specified by:
getFormat in interface BCPGKey
- Returns:
- "RAW" or "PGP"
- 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
- Returns:
- byte[]
- See Also:
BCPGKey.getEncoded()
encode
public void encode(BCPGOutputStream out)
throws java.io.IOException
- Specified by:
encode in class BCPGObject
- Throws:
java.io.IOException
getX
public java.math.BigInteger getX()
- Returns:
- x