KeySpec
RSAMultiPrimePrivateCrtKeySpec
, RSAPrivateCrtKeySpec
public class RSAPrivateKeySpec extends Object implements KeySpec
Constructor | Description |
---|---|
RSAPrivateKeySpec |
Creates a new RSAPrivateKeySpec. |
RSAPrivateKeySpec |
Creates a new RSAPrivateKeySpec with additional key parameters. |
Modifier and Type | Method | Description |
---|---|---|
BigInteger |
getModulus() |
Returns the modulus. |
AlgorithmParameterSpec |
getParams() |
Returns the parameters associated with this key, may be null if not present. |
BigInteger |
getPrivateExponent() |
Returns the private exponent. |
public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
modulus
- the modulusprivateExponent
- the private exponentpublic RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, AlgorithmParameterSpec params)
modulus
- the modulusprivateExponent
- the private exponentparams
- the parameters associated with this key, may be nullpublic BigInteger getModulus()
public BigInteger getPrivateExponent()
public AlgorithmParameterSpec getParams()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/spec/RSAPrivateKeySpec.html