Spec-Zone.ru › OpenJDK 8

Класс RSAPrivateCrtKeySpec

  • java.lang.Object
    • java.security.spec.RSAPrivateKeySpec
      • java.security.spec.RSAPrivateCrtKeySpec
Все реализованные интерфейсы:
KeySpec

public class RSAPrivateCrtKeySpec
extends RSAPrivateKeySpec

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

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

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

Конструктор и описание
RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)

Создаёт новый RSAPrivateCrtKeySpec.

RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)

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

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

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

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

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 - параметры, связанные с ключом
Since:
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

© 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