public interface RSAKey

java.security.interfaces.RSAKey



The interface to a public or private key in PKCS#1 v2.2 standard, such as those for RSA, or RSASSA-PSS algorithms.

Summary

Public methods

abstract BigInteger getModulus()

Returns the modulus.

default AlgorithmParameterSpec getParams()

Returns the parameters associated with this key.

Public methods

getModulus

public abstract BigInteger getModulus ()

Returns the modulus.

Returns
BigInteger the modulus

getParams

public 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 Requirements:
  • The default implementation returns null.
Returns
AlgorithmParameterSpec the associated parameters, may be null

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.