Spec-Zone.ru › OpenJDK 17

Класс 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 - если указан пустой, т.е. пустой, 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.
Возвращает:
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, 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/RSAMultiPrimePrivateCrtKeySpec.html

Spec-Zone.ru

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