Added in API level 1

RSAKeyGenParameterSpec

open class RSAKeyGenParameterSpec : AlgorithmParameterSpec
kotlin.Any
   ↳ java.security.spec.RSAKeyGenParameterSpec

This class specifies the set of parameters used to generate an RSA key pair.

Summary

Public constructors
RSAKeyGenParameterSpec(keysize: Int, publicExponent: BigInteger!)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and null key parameters.

RSAKeyGenParameterSpec(keysize: Int, publicExponent: BigInteger!, keyParams: AlgorithmParameterSpec!)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and key parameters.

Public methods
open AlgorithmParameterSpec!

Returns the parameters to be associated with key.

open Int

Returns the keysize.

open BigInteger!

Returns the public-exponent value.

Properties
static BigInteger!

The public-exponent value F0 = 3.

static BigInteger!

The public exponent-value F4 = 65537.

Public constructors

RSAKeyGenParameterSpec

Added in API level 1
RSAKeyGenParameterSpec(
    keysize: Int,
    publicExponent: BigInteger!)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and null key parameters.

Parameters
keysize Int: the modulus size (specified in number of bits)
publicExponent BigInteger!: the public exponent

RSAKeyGenParameterSpec

Added in API level 1
RSAKeyGenParameterSpec(
    keysize: Int,
    publicExponent: BigInteger!,
    keyParams: AlgorithmParameterSpec!)

Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and key parameters.

Parameters
keysize Int: the modulus size (specified in number of bits)
publicExponent BigInteger!: the public exponent
keyParams AlgorithmParameterSpec!: the key parameters, may be null

Public methods

getKeyParams

open fun getKeyParams(): AlgorithmParameterSpec!

Returns the parameters to be associated with key.

Return
AlgorithmParameterSpec! the associated parameters, may be null if not present

getKeysize

Added in API level 1
open fun getKeysize(): Int

Returns the keysize.

Return
Int the keysize.

getPublicExponent

Added in API level 1
open fun getPublicExponent(): BigInteger!

Returns the public-exponent value.

Return
BigInteger! the public-exponent value.

Properties

F0

Added in API level 1
static val F0: BigInteger!

The public-exponent value F0 = 3.

F4

Added in API level 1
static val F4: BigInteger!

The public exponent-value F4 = 65537.