Added in API level 1
RSAPrivateKeySpec
open class RSAPrivateKeySpec : KeySpec
| kotlin.Any | |
| ↳ | java.security.spec.RSAPrivateKeySpec |
This class specifies an RSA private key.
Summary
| Public constructors | |
|---|---|
RSAPrivateKeySpec(modulus: BigInteger!, privateExponent: BigInteger!)Creates a new RSAPrivateKeySpec. |
|
RSAPrivateKeySpec(modulus: BigInteger!, privateExponent: BigInteger!, params: AlgorithmParameterSpec!)Creates a new RSAPrivateKeySpec 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 private exponent. |
Public constructors
RSAPrivateKeySpec
Added in API level 1
RSAPrivateKeySpec(
modulus: BigInteger!,
privateExponent: BigInteger!)
Creates a new RSAPrivateKeySpec.
| Parameters | |
|---|---|
modulus |
BigInteger!: the modulus |
privateExponent |
BigInteger!: the private exponent |
RSAPrivateKeySpec
Added in API level 35
RSAPrivateKeySpec(
modulus: BigInteger!,
privateExponent: BigInteger!,
params: AlgorithmParameterSpec!)
Creates a new RSAPrivateKeySpec with additional key parameters.
| Parameters | |
|---|---|
modulus |
BigInteger!: the modulus |
privateExponent |
BigInteger!: the private 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 |
getPrivateExponent
Added in API level 1
open fun getPrivateExponent(): BigInteger!
Returns the private exponent.
| Return | |
|---|---|
BigInteger! |
the private exponent |