Класс RSAMultiPrimePrivateCrtKeySpec
- Все реализованные интерфейсы:
KeySpec
public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec
- С тех пор:
- 1.4
- Внешние спецификации
- См. также:
Краткое описание конструкторов
| Конструктор | Описание |
|---|---|
RSAMultiPrimePrivateCrtKeySpec |
Создает новый RSAMultiPrimePrivateCrtKeySpec. |
RSAMultiPrimePrivateCrtKeySpec |
Создает новый RSAMultiPrimePrivateCrtKeySpec с дополнительными параметрами ключа. |
Краткое описание методов
| Модификатор и тип | Метод | Описание |
|---|---|---|
BigInteger |
getCrtCoefficient() |
Возвращает crtCoefficient. |
RSAOtherPrimeInfo[] |
getOtherPrimeInfo() |
Возвращает копию otherPrimeInfo или null, если есть только два простых множителя (p и q). |
BigInteger |
getPrimeExponentP() |
Возвращает primeExponentP. |
BigInteger |
getPrimeExponentQ() |
Возвращает primeExponentQ. |
BigInteger |
getPrimeP() |
Возвращает primeP. |
BigInteger |
getPrimeQ() |
Возвращает primeQ. |
BigInteger |
getPublicExponent() |
Возвращает открытый показатель. |
Методы, объявленные в классе java.security.spec.RSAPrivateKeySpec
getModulus, getParams, getPrivateExponent
Подробное описание конструкторов
RSAMultiPrimePrivateCrtKeySpec
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)
RSAMultiPrimePrivateCrtKeySpec. Обратите внимание, что содержимое otherPrimeInfo копируется для защиты от последующих изменений при построении этого объекта.
- Параметры:
-
modulus- модуль n -
publicExponent- открытый показатель e -
privateExponent- закрытый показатель d -
primeP- простой множитель p модуля n -
primeQ- простой множитель q модуля n -
primeExponentP- это d mod (p-1) -
primeExponentQ- это d mod (q-1) -
crtCoefficient- коэффициент Теоремы об остаточных классах q-1 mod p -
otherPrimeInfo- тройки остальных простых чисел, null может быть указан, если есть только два простых множителя (p и q) - Исключения:
-
NullPointerException- если любой из указанных параметров, кромеotherPrimeInfo, равен null -
IllegalArgumentException- если указан пустой, т.е. нулевой,otherPrimeInfo
RSAMultiPrimePrivateCrtKeySpec
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)
RSAMultiPrimePrivateCrtKeySpec с дополнительными параметрами ключа. Обратите внимание, что содержимое otherPrimeInfo копируется для защиты от последующих изменений при построении этого объекта.
- Параметры:
-
modulus- модуль n -
publicExponent- открытый показатель e -
privateExponent- закрытый показатель d -
primeP- простой множитель p модуля n -
primeQ- простой множитель q модуля n -
primeExponentP- это d mod (p-1) -
primeExponentQ- это d mod (q-1) -
crtCoefficient- коэффициент Теоремы об остаточных классах q-1 mod p -
otherPrimeInfo- тройки остальных простых чисел, null может быть указан, если есть только два простых множителя (p и q) -
keyParams- параметры, связанные с ключом - Исключения:
-
NullPointerException- если любой из указанных параметров, кромеotherPrimeInfoиkeyParams, равен null -
IllegalArgumentException- если указан пустой, т.е. нулевой,otherPrimeInfo - С тех пор:
- 11
Подробное описание методов
getPublicExponent
public BigInteger getPublicExponent()
- Возвращает:
- открытый показатель.
getPrimeP
public BigInteger getPrimeP()
- Возвращает:
- primeP.
getPrimeQ
public BigInteger getPrimeQ()
- Возвращает:
- primeQ.
getPrimeExponentP
public BigInteger getPrimeExponentP()
- Возвращает:
- primeExponentP.
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
- Возвращает:
- primeExponentQ.
getCrtCoefficient
public BigInteger getCrtCoefficient()
- Возвращает:
- crtCoefficient.
getOtherPrimeInfo
public RSAOtherPrimeInfo[] getOtherPrimeInfo()
- Возвращает:
- otherPrimeInfo. Возвращает новый массив каждый раз, когда вызывается этот метод.
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://download.java.net/java/early_access/jdk24/docs/api/java.base/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.html