Stay organized with collections
Save and categorize content based on your preferences.
RSAKeyGenParameterSpec
open class RSAKeyGenParameterSpec : AlgorithmParameterSpec
This class specifies the set of parameters used to generate an RSA key pair.
Summary
Public constructors |
Constructs a new RSAKeyGenParameterSpec object from the given keysize, public-exponent value, and null key parameters.
|
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
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.
getKeysize
open fun getKeysize(): Int
Returns the keysize.
getPublicExponent
open fun getPublicExponent(): BigInteger!
Returns the public-exponent value.
Properties
F0
static val F0: BigInteger!
The public-exponent value F0 = 3.
F4
static val F4: BigInteger!
The public exponent-value F4 = 65537.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# RSAKeyGenParameterSpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRSAKeyGenParameterSpec\n======================\n\n```\nopen class RSAKeyGenParameterSpec : AlgorithmParameterSpec\n```\n\n|---|------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.RSAKeyGenParameterSpec](#) |\n\nThis class specifies the set of parameters used to generate an RSA key pair.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [RSAKeyGenParameterSpec](#RSAKeyGenParameterSpec(kotlin.Int,%20java.math.BigInteger))`(`keysize:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `publicExponent:` `[BigInteger](../../math/BigInteger.html#)!`)` Constructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and null key parameters. |\n| [RSAKeyGenParameterSpec](#RSAKeyGenParameterSpec(kotlin.Int,%20java.math.BigInteger,%20java.security.spec.AlgorithmParameterSpec))`(`keysize:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `publicExponent:` `[BigInteger](../../math/BigInteger.html#)!`, `keyParams:` `[AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)!`)` Constructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and key parameters. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| open [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)! | [getKeyParams](#getKeyParams())`()` Returns the parameters to be associated with key. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getKeysize](#getKeysize())`()` Returns the keysize. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getPublicExponent](#getPublicExponent())`()` Returns the public-exponent value. |\n\n| Properties ||\n|---------------------------------------------------|----------------------------------------------------------------------|\n| static [BigInteger](../../math/BigInteger.html#)! | [F0](#F0:java.math.BigInteger) The public-exponent value F0 = 3. |\n| static [BigInteger](../../math/BigInteger.html#)! | [F4](#F4:java.math.BigInteger) The public exponent-value F4 = 65537. |\n\nPublic constructors\n-------------------\n\n### RSAKeyGenParameterSpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRSAKeyGenParameterSpec(\n keysize: Int, \n publicExponent: BigInteger!)\n```\n\nConstructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and null key parameters.\n\n| Parameters ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------|\n| `keysize` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the modulus size (specified in number of bits) |\n| `publicExponent` | [BigInteger](../../math/BigInteger.html#)!: the public exponent |\n\n### RSAKeyGenParameterSpec\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRSAKeyGenParameterSpec(\n keysize: Int, \n publicExponent: BigInteger!, \n keyParams: AlgorithmParameterSpec!)\n```\n\nConstructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and key parameters.\n\n| Parameters ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------|\n| `keysize` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the modulus size (specified in number of bits) |\n| `publicExponent` | [BigInteger](../../math/BigInteger.html#)!: the public exponent |\n| `keyParams` | [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)!: the key parameters, may be null |\n\nPublic methods\n--------------\n\n### getKeyParams\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getKeyParams(): AlgorithmParameterSpec!\n```\n\nReturns the parameters to be associated with key.\n\n| Return ||\n|----------------------------------------------------------------------------------------|-------------------------------------------------------|\n| [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)! | the associated parameters, may be null if not present |\n\n### getKeysize\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getKeysize(): Int\n```\n\nReturns the keysize.\n\n| Return ||\n|----------------------------------------------------------------------------|--------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the keysize. |\n\n### getPublicExponent\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getPublicExponent(): BigInteger!\n```\n\nReturns the public-exponent value.\n\n| Return ||\n|--------------------------------------------|----------------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the public-exponent value. |\n\nProperties\n----------\n\n### F0\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val F0: BigInteger!\n```\n\nThe public-exponent value F0 = 3. \n\n### F4\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val F4: BigInteger!\n```\n\nThe public exponent-value F4 = 65537."]]