Added in API level 1

RSAKey

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!

Returns the modulus.

open AlgorithmParameterSpec!

Returns the parameters associated with this key.

Public methods

getModulus

Added in API level 1
abstract fun getModulus(): BigInteger!

Returns the modulus.

Return
BigInteger! the modulus

getParams

Added in API level 35
open fun getParams(): AlgorithmParameterSpec!

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

Return
AlgorithmParameterSpec! the associated parameters, may be null