public class RSAPrivateKeySpec extends java.lang.Object implements KeySpec
| Constructor and Description |
|---|
RSAPrivateKeySpec(java.math.BigInteger modulus,
java.math.BigInteger privateExponent)
Constructs a new RSAPrivateKeySpec with the specified
modulus and privateExponent.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getModulus()
Gets the RSA modulus.
|
java.math.BigInteger |
getPrivateExponent()
Gets the RSA private exponent.
|
public RSAPrivateKeySpec(java.math.BigInteger modulus, java.math.BigInteger privateExponent)
modulus - the RSA modulusprivateExponent - the private key exponentpublic java.math.BigInteger getModulus()
public java.math.BigInteger getPrivateExponent()