Класс RSAPrivateCrtKeySpec

Все реализованные интерфейсы:
KeySpec
public class RSAPrivateCrtKeySpec
extends RSAPrivateKeySpec

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

С тех пор:
1.2
См. также:
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 с дополнительными параметрами ключа.

Методы

Модификатор и типМетодОписание
BigIntegergetCrtCoefficient()

Возвращает crtCoefficient.

BigIntegergetPrimeExponentP()

Возвращает primeExponentP.

BigIntegergetPrimeExponentQ()

Возвращает primeExponentQ.

BigIntegergetPrimeP()

Возвращает primeP.

BigIntegergetPrimeQ()

Возвращает primeQ.

BigIntegergetPublicExponent()

Возвращает открытый показатель.

Методы, объявленные в классе 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 - параметры, связанные с ключом
С тех пор:
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, 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/RSAPrivateCrtKeySpec.html

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