- java.lang.Object
-
- java.security.spec.RSAPrivateKeySpec
-
- All Implemented Interfaces:
KeySpec
- Direct Known Subclasses:
RSAMultiPrimePrivateCrtKeySpec
,RSAPrivateCrtKeySpec
public class RSAPrivateKeySpec extends Object implements KeySpec
This class specifies an RSA private key.- Since:
- 1.2
- See Also:
Key
,KeyFactory
,KeySpec
,PKCS8EncodedKeySpec
,RSAPublicKeySpec
,RSAPrivateCrtKeySpec
-
-
Constructor Summary
Constructors Constructor Description RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getModulus()
Returns the modulus.BigInteger
getPrivateExponent()
Returns the private exponent.
-
-
-
Constructor Detail
-
RSAPrivateKeySpec
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
Creates a new RSAPrivateKeySpec.- Parameters:
modulus
- the modulusprivateExponent
- the private exponent
-
-
Method Detail
-
getModulus
public BigInteger getModulus()
Returns the modulus.- Returns:
- the modulus
-
getPrivateExponent
public BigInteger getPrivateExponent()
Returns the private exponent.- Returns:
- the private exponent
-
-