Класс RSAPrivateCrtKeySpec
java.lang.Object
java.security.spec.RSAPrivateKeySpec
java.security.spec.RSAPrivateCrtKeySpec
- Все реализуемые интерфейсы:
KeySpec
public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
Этот класс описывает закрытый ключ RSA, как определено в стандарте PKCS#1 v2.2, используя значения информации теоремы китайского остатка (CRT) для повышения эффективности.
- С:
- 1.2
- См. также:
Краткое описание конструкторов
| Конструктор | Описание |
|---|---|
RSAPrivateCrtKeySpec |
Создаёт новый RSAPrivateCrtKeySpec. |
RSAPrivateCrtKeySpec |
Создаёт новый RSAPrivateCrtKeySpec с дополнительными параметрами ключа. |
Краткое описание методов
| Модификатор и тип | Метод | Описание |
|---|---|---|
BigInteger |
getCrtCoefficient() |
Возвращает crtCoefficient. |
BigInteger |
getPrimeExponentP() |
Возвращает primeExponentP. |
BigInteger |
getPrimeExponentQ() |
Возвращает primeExponentQ. |
BigInteger |
getPrimeP() |
Возвращает primeP. |
BigInteger |
getPrimeQ() |
Возвращает primeQ. |
BigInteger |
getPublicExponent() |
Возвращает открытую экспоненту. |
Методы, объявленные в классе java.security.spec.RSAPrivateKeySpec
getModulus, getParams, getPrivateExponent
Подробное описание конструкторов
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
Создаёт новый
RSAPrivateCrtKeySpec.- Параметры:
-
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
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)
Создаёт новый
RSAPrivateCrtKeySpec с дополнительными параметрами ключа.- Параметры:
-
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 -
keyParams- параметры, связанные с ключом - С:
- 11
Подробное описание методов
getPublicExponent
public BigInteger getPublicExponent()
Возвращает открытую экспоненту.
- Возвращает:
- открытую экспоненту
getPrimeP
public BigInteger getPrimeP()
Возвращает primeP.
- Возвращает:
- primeP
getPrimeQ
public BigInteger getPrimeQ()
Возвращает primeQ.
- Возвращает:
- primeQ
getPrimeExponentP
public BigInteger getPrimeExponentP()
Возвращает primeExponentP.
- Возвращает:
- primeExponentP
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
Возвращает primeExponentQ.
- Возвращает:
- primeExponentQ
getCrtCoefficient
public BigInteger getCrtCoefficient()
Возвращает crtCoefficient.
- Возвращает:
- crtCoefficient
© 1993, 2021, 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://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/security/spec/RSAPrivateCrtKeySpec.html