Added in API level 1
    RSAPublicKeySpec
open class RSAPublicKeySpec : KeySpec
| kotlin.Any | |
| ↳ | java.security.spec.RSAPublicKeySpec | 
This class specifies an RSA public key.
Summary
| Public constructors | |
|---|---|
            RSAPublicKeySpec(modulus: BigInteger!, publicExponent: BigInteger!)Creates a new RSAPublicKeySpec.  | 
        |
            RSAPublicKeySpec(modulus: BigInteger!, publicExponent: BigInteger!, params: AlgorithmParameterSpec!)Creates a new RSAPublicKeySpec with additional key parameters.  | 
        |
| Public methods | |
|---|---|
| open BigInteger! | 
            
             Returns the modulus.  | 
        
| open AlgorithmParameterSpec! | 
            
             Returns the parameters associated with this key, may be null if not present.  | 
        
| open BigInteger! | 
            
             Returns the public exponent.  | 
        
Public constructors
RSAPublicKeySpec
Added in API level 1
      RSAPublicKeySpec(
modulus: BigInteger!,
publicExponent: BigInteger!)
Creates a new RSAPublicKeySpec.
| Parameters | |
|---|---|
modulus | 
            BigInteger!: the modulus | 
publicExponent | 
            BigInteger!: the public exponent | 
RSAPublicKeySpec
Added in API level 35
      RSAPublicKeySpec(
modulus: BigInteger!,
publicExponent: BigInteger!,
params: AlgorithmParameterSpec!)
Creates a new RSAPublicKeySpec with additional key parameters.
| Parameters | |
|---|---|
modulus | 
            BigInteger!: the modulus | 
publicExponent | 
            BigInteger!: the public exponent | 
params | 
            AlgorithmParameterSpec!: the parameters associated with this key, may be null | 
Public methods
getModulus
Added in API level 1
      open 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, may be null if not present.
| Return | |
|---|---|
AlgorithmParameterSpec! | 
            the parameters associated with this key | 
getPublicExponent
Added in API level 1
      open fun getPublicExponent(): BigInteger!
Returns the public exponent.
| Return | |
|---|---|
BigInteger! | 
            the public exponent |