public class DSASecretBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
DSASecretBCPGKey(BCPGInputStream in) |
DSASecretBCPGKey(BigInteger x) |
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 |
getX() |
public DSASecretBCPGKey(BCPGInputStream in) throws IOException
in
- IOException
public DSASecretBCPGKey(BigInteger x)
x
- 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 getX()