Класс RSAMultiPrimePrivateCrtKeySpec

Все реализуемые интерфейсы:
KeySpec
public class RSAMultiPrimePrivateCrtKeySpec
extends RSAPrivateKeySpec

Этот класс определяет закрытый ключ RSA с несколькими простыми множителями, как определено в стандарте PKCS#1 v2.2 с использованием информации Китайской теоремы об остатках (CRT) для повышения эффективности.

С:
1.4
См. также:
Key, KeyFactory, KeySpec, PKCS8EncodedKeySpec, RSAPrivateKeySpec, RSAPublicKeySpec, RSAOtherPrimeInfo

Конструкторы

Конструктор Описание
RSAMultiPrimePrivateCrtKeySpec​(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)

Создает новый RSAMultiPrimePrivateCrtKeySpec.

RSAMultiPrimePrivateCrtKeySpec​(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)

Создает новый 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

Методы, объявленные в классе java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Конструкторы

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 числа q
primeExponentP - это d mod (p-1)
primeExponentQ - это d mod (q-1)
crtCoefficient - коэффициент Китайской теоремы об остатках q-1 mod p
otherPrimeInfo - тройки остальных простых чисел, null может быть указан, если есть только два простых множителя (p и q)
Исключения:
NullPointerException - если любой из указанных параметров, за исключением otherPrimeInfo, равен null
IllegalArgumentException - если указан пустой, т.е. 0-длины, 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 - если указан пустой, т.е. 0-длины, otherPrimeInfo
С:
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.

getOtherPrimeInfo

public RSAOtherPrimeInfo[] getOtherPrimeInfo()

Возвращает копию otherPrimeInfo или null, если есть только два простых множителя (p и q).

Возвращает:
otherPrimeInfo. Возвращает новый массив каждый раз при вызове этого метода.

© 1993, 2020, 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/11/docs/api/java.base/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.html

Spec-Zone .ru
спецификации, руководства, описания, API