Stay organized with collections
Save and categorize content based on your preferences.
RSAPrivateKey
interface RSAPrivateKey : PrivateKey, RSAKey
Known Direct Subclasses
RSAMultiPrimePrivateCrtKey |
The interface to an RSA multi-prime private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.
|
RSAPrivateCrtKey |
The interface to an RSA private key, as defined in the PKCS#1 v2.2 standard, using the Chinese Remainder Theorem (CRT) information values.
|
|
The interface to an RSA private key.
Summary
Constants |
static Long |
The type fingerprint that is set to indicate serialization compatibility with a previous version of the type.
|
Public methods |
abstract BigInteger! |
Returns the private exponent.
|
Constants
serialVersionUID
static val serialVersionUID: Long
Deprecated: A serialVersionUID
field in an interface is ineffectual. Do not use; no replacement.
The type fingerprint that is set to indicate serialization compatibility with a previous version of the type.
Value: 5187144804936595022L
Public methods
getPrivateExponent
abstract fun getPrivateExponent(): BigInteger!
Returns the private exponent.
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,["# RSAPrivateKey\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRSAPrivateKey\n=============\n\n```\ninterface RSAPrivateKey : PrivateKey, RSAKey\n```\n\n|---------------------------------------------|\n| [java.security.interfaces.RSAPrivateKey](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [RSAMultiPrimePrivateCrtKey](/reference/kotlin/java/security/interfaces/RSAMultiPrimePrivateCrtKey), [RSAPrivateCrtKey](/reference/kotlin/java/security/interfaces/RSAPrivateCrtKey) |-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [RSAMultiPrimePrivateCrtKey](/reference/kotlin/java/security/interfaces/RSAMultiPrimePrivateCrtKey) | The interface to an RSA multi-prime private key, as defined in the [PKCS#1 v2.2](https://tools.ietf.org/rfc/rfc8017.txt) standard, using the *Chinese Remainder Theorem* (CRT) information values. | | [RSAPrivateCrtKey](/reference/kotlin/java/security/interfaces/RSAPrivateCrtKey) | The interface to an RSA private key, as defined in the [PKCS#1 v2.2](https://tools.ietf.org/rfc/rfc8017.txt) standard, using the *Chinese Remainder Theorem* (CRT) information values. | |\n\nThe interface to an RSA private key.\n\nSummary\n-------\n\n| Constants ||\n|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [serialVersionUID](#serialVersionUID:kotlin.Long) The type fingerprint that is set to indicate serialization compatibility with a previous version of the type. |\n\n| Public methods ||\n|-----------------------------------------------------|-------------------------------------------------------------------------------|\n| abstract [BigInteger](../../math/BigInteger.html#)! | [getPrivateExponent](#getPrivateExponent())`()` Returns the private exponent. |\n\n| Inherited functions ||\n|---|---|\n| From class [RSAKey](/reference/kotlin/java/security/interfaces/RSAKey) |-----------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [BigInteger](../../math/BigInteger.html#)! | [getModulus](/reference/kotlin/java/security/interfaces/RSAKey#getModulus())`()` Returns the modulus. \u003cbr /\u003e | | [AlgorithmParameterSpec](../spec/AlgorithmParameterSpec.html#)! | [getParams](/reference/kotlin/java/security/interfaces/RSAKey#getParams())`()` Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation. \u003cbr /\u003e | ||\n\nConstants\n---------\n\n### serialVersionUID\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val serialVersionUID: Long\n```\n\n**Deprecated:** *A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.*\n\nThe type fingerprint that is set to indicate serialization compatibility with a previous version of the type. \n\n Value: 5187144804936595022L\n\nPublic methods\n--------------\n\n### getPrivateExponent\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getPrivateExponent(): BigInteger!\n```\n\nReturns the private exponent.\n\n| Return ||\n|--------------------------------------------|----------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the private exponent |"]]