Package java.security.spec
Class RSAPrivateKeySpec
java.lang.Object
java.security.spec.RSAPrivateKeySpec
- All Implemented Interfaces:
KeySpec
- Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec,RSAPrivateCrtKeySpec
public class RSAPrivateKeySpec extends Object implements KeySpec
The key specification of a RSA private key.
Defined in the PKCS #1 v2.1 standard
-
Constructor Summary
Constructors Constructor Description RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)Creates a newRSAPrivateKeySpecwith the specified modulus and private exponent. -
Method Summary
Modifier and Type Method Description BigIntegergetModulus()Returns the modulusn.BigIntegergetPrivateExponent()Returns the private exponente.
-
Constructor Details
-
RSAPrivateKeySpec
Creates a newRSAPrivateKeySpecwith the specified modulus and private exponent.- Parameters:
modulus- the modulusn.privateExponent- the private exponente
-
-
Method Details
-
getModulus
Returns the modulusn.- Returns:
- the modulus
n.
-
getPrivateExponent
Returns the private exponente.- Returns:
- the private exponent
e.
-