Added in API level 1

RSAKey

public interface RSAKey

java.security.interfaces.RSAKey
RSAMultiPrimePrivateCrtKey The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values. 
RSAPrivateCrtKey The interface to an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values. 
RSAPrivateKey The interface to an RSA private key. 
RSAPublicKey The interface to an RSA public key. 


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

Added in API level 1
public abstract BigInteger getModulus ()

Returns the modulus.

Returns
BigInteger the modulus

getParams

Added in API level 35
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