Spec-Zone.ru › OpenJDK 8

Класс RSAMultiPrimePrivateCrtKeySpec

  • java.lang.Object
    • java.security.spec.RSAPrivateKeySpec
      • java.security.spec.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 числа n
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
С тех пор:
8

Методы

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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API