public class RSASecretBCPGKey extends BCPGObject implements BCPGKey
Constructor and Description |
---|
RSASecretBCPGKey(BCPGInputStream in) |
RSASecretBCPGKey(java.math.BigInteger d,
java.math.BigInteger p,
java.math.BigInteger q) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
java.math.BigInteger |
getCrtCoefficient()
return the crt coefficient
|
byte[] |
getEncoded()
return the standard PGP encoding of the key.
|
java.lang.String |
getFormat()
return "PGP"
|
java.math.BigInteger |
getModulus()
return the modulus for this key.
|
java.math.BigInteger |
getPrimeExponentP()
return the prime exponent of p
|
java.math.BigInteger |
getPrimeExponentQ()
return the prime exponent of q
|
java.math.BigInteger |
getPrimeP()
return the prime P
|
java.math.BigInteger |
getPrimeQ()
return the prime Q
|
java.math.BigInteger |
getPrivateExponent()
return the private exponent for this key.
|
public RSASecretBCPGKey(BCPGInputStream in) throws java.io.IOException
in
- java.io.IOException
public RSASecretBCPGKey(java.math.BigInteger d, java.math.BigInteger p, java.math.BigInteger q)
d
- p
- q
- public java.math.BigInteger getModulus()
public java.math.BigInteger getPrivateExponent()
public java.math.BigInteger getPrimeP()
public java.math.BigInteger getPrimeQ()
public java.math.BigInteger getPrimeExponentP()
public java.math.BigInteger getPrimeExponentQ()
public java.math.BigInteger getCrtCoefficient()
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