RSAPrivateKeySpec (Java SE 9 & JDK 9 )
- 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 BigIntegergetModulus()Returns the modulus.
BigIntegergetPrivateExponent()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
-
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.