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