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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetModulus()Returns the modulusn.BigIntegergetPrivateExponent()Returns the private exponente.
-
-
-
Constructor Detail
-
RSAPrivateKeySpec
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a newRSAPrivateKeySpecwith the specified modulus and private exponent.- Parameters:
modulus- the modulusn.privateExponent- the private exponente
-
-
Method Detail
-
getModulus
public BigInteger getModulus()
Returns the modulusn.- Returns:
- the modulus
n.
-
getPrivateExponent
public BigInteger getPrivateExponent()
Returns the private exponente.- Returns:
- the private exponent
e.
-
-