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 RSAParameterSpec object from the given keysize and public-exponent value.

Public methods
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 RSAParameterSpec object from the given keysize and public-exponent value.

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

Public methods

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.