RSAMultiPrimePrivateCrtKey
Stay organized with collections
Save and categorize content based on your preferences.
The interface to an RSA multi-prime private key, as defined in the
PKCS#1 v2.1, 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
RSAOtherPrimeInfo[]
|
getOtherPrimeInfo()
Returns the otherPrimeInfo or null if there are only
two prime factors (p and q).
|
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:
618058533534628008
Public Methods
public
abstract
BigInteger
getCrtCoefficient
()
Returns the crtCoefficient.
Returns the otherPrimeInfo or null if there are only
two prime factors (p and q).
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\u003eRSAMultiPrimePrivateCrtKey\u003c/code\u003e represents an RSA private key using the Chinese Remainder Theorem (CRT) for multi-prime RSA calculations, as defined in PKCS#1 v2.1.\u003c/p\u003e\n"],["\u003cp\u003eIt extends the \u003ccode\u003eRSAPrivateKey\u003c/code\u003e interface and provides methods to access CRT-specific parameters like \u003ccode\u003ecrtCoefficient\u003c/code\u003e, \u003ccode\u003eotherPrimeInfo\u003c/code\u003e, \u003ccode\u003eprimeExponentP\u003c/code\u003e, \u003ccode\u003eprimeExponentQ\u003c/code\u003e, \u003ccode\u003eprimeP\u003c/code\u003e, and \u003ccode\u003eprimeQ\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interface also includes methods for retrieving the public exponent and the standard RSA key components like modulus and private exponent inherited from its parent interfaces.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this interface to work with RSA private keys that utilize the CRT optimization for faster computations in multi-prime scenarios.\u003c/p\u003e\n"]]],["`RSAMultiPrimePrivateCrtKey` is an interface for RSA multi-prime private keys using the Chinese Remainder Theorem. Key actions involve retrieving specific values like `crtCoefficient`, `otherPrimeInfo`, `primeExponentP`, `primeExponentQ`, `primeP`, `primeQ`, and `publicExponent`. It also provides access to the `serialVersionUID` for serialization, the `private exponent` and `modulus`, in addition to standard key operations such as getting `algorithm`, `encoded` key, and `format`.\n"],null,["# RSAMultiPrimePrivateCrtKey\n\npublic interface **RSAMultiPrimePrivateCrtKey** implements [RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html) \nThe interface to an RSA multi-prime private key, as defined in the\nPKCS#1 v2.1, using the *Chinese Remainder Theorem*\n(CRT) information values. \n\n##### See Also\n\n- [RSAPrivateKeySpec](../../../../reference/java/security/spec/RSAPrivateKeySpec.html)\n- [RSAMultiPrimePrivateCrtKeySpec](../../../../reference/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.html)\n- [RSAPrivateKey](../../../../reference/java/security/interfaces/RSAPrivateKey.html)\n- [RSAPrivateCrtKey](../../../../reference/java/security/interfaces/RSAPrivateCrtKey.html) \n\n### Constant Summary\n\n|------|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#serialVersionUID) | The type fingerprint that is set to indicate serialization compatibility with a previous version of the type. |\n\n### Inherited Constant Summary\n\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\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getCrtCoefficient](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getCrtCoefficient())() Returns the crtCoefficient. |\n| abstract [RSAOtherPrimeInfo\\[\\]](../../../../reference/java/security/spec/RSAOtherPrimeInfo.html) | [getOtherPrimeInfo](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getOtherPrimeInfo())() Returns the otherPrimeInfo or null if there are only two prime factors (p and q). |\n| abstract BigInteger | [getPrimeExponentP](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getPrimeExponentP())() Returns the primeExponentP. |\n| abstract BigInteger | [getPrimeExponentQ](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getPrimeExponentQ())() Returns the primeExponentQ. |\n| abstract BigInteger | [getPrimeP](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getPrimeP())() Returns the primeP. |\n| abstract BigInteger | [getPrimeQ](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getPrimeQ())() Returns the primeQ. |\n| abstract BigInteger | [getPublicExponent](../../../../reference/java/security/interfaces/RSAMultiPrimePrivateCrtKey.html#getPublicExponent())() Returns the public exponent. |\n\n### Inherited Method Summary\n\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---------\n\n#### public static final long\n**serialVersionUID**\n\nThe type fingerprint that is set to indicate\nserialization compatibility with a previous\nversion of the type. \nConstant Value: 618058533534628008\n\nPublic Methods\n--------------\n\n#### public abstract BigInteger\n**getCrtCoefficient**\n()\n\nReturns the crtCoefficient. \n\n##### Returns\n\n- the crtCoefficient. \n\n#### public abstract [RSAOtherPrimeInfo\\[\\]](../../../../reference/java/security/spec/RSAOtherPrimeInfo.html)\n**getOtherPrimeInfo**\n()\n\nReturns the otherPrimeInfo or null if there are only\ntwo prime factors (p and q). \n\n##### Returns\n\n- the otherPrimeInfo. \n\n#### public abstract BigInteger\n**getPrimeExponentP**\n()\n\nReturns the primeExponentP. \n\n##### Returns\n\n- the primeExponentP. \n\n#### public abstract BigInteger\n**getPrimeExponentQ**\n()\n\nReturns the primeExponentQ. \n\n##### Returns\n\n- the primeExponentQ. \n\n#### public abstract BigInteger\n**getPrimeP**\n()\n\nReturns the primeP. \n\n##### Returns\n\n- the primeP. \n\n#### public abstract BigInteger\n**getPrimeQ**\n()\n\nReturns the primeQ. \n\n##### Returns\n\n- the primeQ. \n\n#### public abstract BigInteger\n**getPublicExponent**\n()\n\nReturns the public exponent. \n\n##### Returns\n\n- the public exponent."]]