RSAPrivateCrtKey
Stay organized with collections
Save and categorize content based on your preferences.
The interface to an RSA private key, as defined in the PKCS#1 standard,
using the Chinese Remainder Theorem (CRT) information values.
Constant Summary
long |
serialVersionUID |
The type fingerprint that is set to indicate
serialization compatibility with a previous
version of the type. |
Inherited Constant Summary
From interface
java.security.Key
long |
serialVersionUID |
The class fingerprint that is set to indicate
serialization compatibility with a previous
version of the class. |
Public Method Summary
abstract
BigInteger
|
|
abstract
BigInteger
|
|
abstract
BigInteger
|
|
abstract
BigInteger
|
|
abstract
BigInteger
|
|
abstract
BigInteger
|
|
Inherited Method Summary
From interface
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
Constants
public
static
final
long
serialVersionUID
The type fingerprint that is set to indicate
serialization compatibility with a previous
version of the type.
Constant Value:
-5682214253527700368
Public Methods
public
abstract
BigInteger
getCrtCoefficient
()
Returns the crtCoefficient.
public
abstract
BigInteger
getPrimeExponentP
()
Returns the primeExponentP.
public
abstract
BigInteger
getPrimeExponentQ
()
Returns the primeExponentQ.
public
abstract
BigInteger
getPrimeP
()
public
abstract
BigInteger
getPrimeQ
()
public
abstract
BigInteger
getPublicExponent
()
Returns the public exponent.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eRSAPrivateCrtKey\u003c/code\u003e is an interface representing an RSA private key using the Chinese Remainder Theorem (CRT).\u003c/p\u003e\n"],["\u003cp\u003eIt extends the \u003ccode\u003eRSAPrivateKey\u003c/code\u003e interface and provides access to CRT-specific values like \u003ccode\u003ecrtCoefficient\u003c/code\u003e, \u003ccode\u003eprimeP\u003c/code\u003e, and \u003ccode\u003eprimeQ\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis interface includes methods to retrieve these CRT values along with the public exponent.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits methods from parent interfaces to access the private exponent and modulus.\u003c/p\u003e\n"]]],["The `RSAPrivateCrtKey` interface, based on the PKCS#1 standard and utilizing the Chinese Remainder Theorem, defines methods to retrieve key components. These methods return `BigInteger` values for `crtCoefficient`, `primeExponentP`, `primeExponentQ`, `primeP`, `primeQ`, and `publicExponent`. Additionally, it inherits methods to get the `privateExponent` and `modulus`. It also uses `serialVersionUID` to maintain compatibility across different versions. This interface also includes methods to get key algorithm, format and encoding, and destroy related objects.\n"],null,["public interface **RSAPrivateCrtKey** implements [RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html) \nThe interface to an RSA private key, as defined in the PKCS#1 standard,\nusing the *Chinese Remainder Theorem* (CRT) information values. \n\nSee Also\n\n- [RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html) \n\nConstant Summary\n\n|------|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#serialVersionUID) | The type fingerprint that is set to indicate serialization compatibility with a previous version of the type. |\n\nInherited Constant Summary \nFrom interface [java.security.interfaces.RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html) \n\n|------|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/interfaces/RSAPrivateKey.html#serialVersionUID) | The type fingerprint that is set to indicate serialization compatibility with a previous version of the type. |\n\nFrom interface [java.security.PrivateKey](../../../../reference/java/security/PrivateKey.html) \n\n|------|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/PrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|------|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/Key.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nPublic Method Summary\n\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getCrtCoefficient](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getCrtCoefficient())() Returns the crtCoefficient. |\n| abstract BigInteger | [getPrimeExponentP](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getPrimeExponentP())() Returns the primeExponentP. |\n| abstract BigInteger | [getPrimeExponentQ](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getPrimeExponentQ())() Returns the primeExponentQ. |\n| abstract BigInteger | [getPrimeP](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getPrimeP())() Returns the primeP. |\n| abstract BigInteger | [getPrimeQ](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getPrimeQ())() Returns the primeQ. |\n| abstract BigInteger | [getPublicExponent](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html#getPublicExponent())() Returns the public exponent. |\n\nInherited Method Summary \nFrom interface [java.security.interfaces.RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html) \n\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getPrivateExponent](../../../../reference/java/security/interfaces/RSAPrivateKey.html#getPrivateExponent())() Returns the private exponent. |\n\nFrom interface [java.security.interfaces.RSAKey](../../../../reference/java/security/interfaces/RSAKey.html) \n\n|---------------------|--------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getModulus](../../../../reference/java/security/interfaces/RSAKey.html#getModulus())() Returns the modulus. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|----------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](../../../../reference/java/lang/String.html) | [getAlgorithm](../../../../reference/java/security/Key.html#getAlgorithm())() Returns the standard algorithm name for this key. |\n| abstract byte\\[\\] | [getEncoded](../../../../reference/java/security/Key.html#getEncoded())() Returns the key in its primary encoding format, or null if this key does not support encoding. |\n| abstract [String](../../../../reference/java/lang/String.html) | [getFormat](../../../../reference/java/security/Key.html#getFormat())() Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |\n\nFrom interface [javax.security.auth.Destroyable](../../../../reference/javax/security/auth/Destroyable.html) \n\n|---------|------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [destroy](../../../../reference/javax/security/auth/Destroyable.html#destroy())() Destroy this `Object`. |\n| boolean | [isDestroyed](../../../../reference/javax/security/auth/Destroyable.html#isDestroyed())() Determine if this `Object` has been destroyed. |\n\nConstants \n\npublic static final long\n**serialVersionUID** \nThe type fingerprint that is set to indicate\nserialization compatibility with a previous\nversion of the type. \nConstant Value: -5682214253527700368\n\nPublic Methods \n\npublic abstract BigInteger\n**getCrtCoefficient**\n() \nReturns the crtCoefficient. \n\nReturns\n\n- the crtCoefficient \n\npublic abstract BigInteger\n**getPrimeExponentP**\n() \nReturns the primeExponentP. \n\nReturns\n\n- the primeExponentP \n\npublic abstract BigInteger\n**getPrimeExponentQ**\n() \nReturns the primeExponentQ. \n\nReturns\n\n- the primeExponentQ \n\npublic abstract BigInteger\n**getPrimeP**\n() \nReturns the primeP. \n\nReturns\n\n- the primeP \n\npublic abstract BigInteger\n**getPrimeQ**\n() \nReturns the primeQ. \n\nReturns\n\n- the primeQ \n\npublic abstract BigInteger\n**getPublicExponent**\n() \nReturns the public exponent. \n\nReturns\n\n- the public exponent"]]