public class RSAPrivateKeySpec extends Object implements KeySpec
Defined in the PKCS #1 v2.1 standard
| Constructor and Description |
|---|
RSAPrivateKeySpec(BigInteger modulus,
BigInteger privateExponent)
Creates a new
RSAPrivateKeySpec with the specified modulus and
private exponent. |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getModulus()
Returns the modulus
n. |
BigInteger |
getPrivateExponent()
Returns the private exponent
e. |
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
RSAPrivateKeySpec with the specified modulus and
private exponent.modulus - the modulus n.privateExponent - the private exponent epublic BigInteger getModulus()
n.n.public BigInteger getPrivateExponent()
e.e.