KeySpec
public class RSAPublicKeySpec extends Object implements KeySpec
Constructor | Description |
---|---|
RSAPublicKeySpec |
Creates a new RSAPublicKeySpec. |
RSAPublicKeySpec |
Creates a new RSAPublicKeySpec 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 |
getPublicExponent() |
Returns the public exponent. |
public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
modulus
- the moduluspublicExponent
- the public exponentpublic RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)
modulus
- the moduluspublicExponent
- the public exponentparams
- the parameters associated with this key, may be nullpublic BigInteger getModulus()
public BigInteger getPublicExponent()
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/RSAPublicKeySpec.html