APIdia Launch Partner
Top Description Methods
java.security.interfaces

public Interface RSAKey

Known Direct Subinterfaces
java.security.interfaces.RSAPrivateKey, java.security.interfaces.RSAPublicKey
Imports
java.math.BigInteger, java.security.spec.AlgorithmParameterSpec

The interface to a public or private key in PKCS#1 v2.2 standard, such as those for RSA, or RSASSA-PSS algorithms.
Author
Jan Luehe
Since
1.3
External Specification
https://www.rfc-editor.org/info/rfc8017
See Also
RSAPublicKey, RSAPrivateKey

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

the modulus
getModulus
()

Returns the modulus.

public default AlgorithmParameterSpec

Returns:

the associated parameters, may be null
getParams
()

Returns the parameters associated with this key.

Method Detail

getModulusback to summary
public BigInteger getModulus()

Returns the modulus.

Returns:BigInteger

the modulus

getParamsback to summary
public default AlgorithmParameterSpec getParams()

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Implementation Specification

The default implementation returns null.

Returns:AlgorithmParameterSpec

the associated parameters, may be null

Since
11