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