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(keysize: Int, publicExponent: BigInteger!, keyParams: AlgorithmParameterSpec!) Constructs a new |
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
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
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
open fun getKeysize(): Int
Returns the keysize.
Return | |
---|---|
Int | the keysize. |
getPublicExponent
open fun getPublicExponent(): BigInteger!
Returns the public-exponent value.
Return | |
---|---|
BigInteger! | the public-exponent value. |