java.lang.Object
java.security.spec.RSAPrivateKeySpec
java.security.spec.RSAPrivateCrtKeySpec
- 所有已实现的接口:
-
KeySpec
该类指定了一个RSA私钥,根据中国剩余定理(CRT)信息值的效率,定义在PKCS#1 v2.2标准中。
- 自从:
- 1.2
- 参见:
-
Constructor Summary
ConstructorDescriptionRSAPrivateCrtKeySpec
(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
。 -
Method Summary
Modifier and TypeMethodDescription返回crtCoefficient。返回primeExponentP。返回primeExponentQ。返回primeP。返回primeQ。返回公共指数。Methods declared in class java.security.spec.RSAPrivateKeySpec
getModulus, getParams, getPrivateExponent
-
Constructor Details
-
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
- n的质因数p -
primeQ
- n的质因数q -
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
- n的质因数p -
primeQ
- n的质因数q -
primeExponentP
- 这是d mod (p-1) -
primeExponentQ
- 这是d mod (q-1) -
crtCoefficient
- 中国剩余定理系数q-1 mod p -
keyParams
- 与密钥相关的参数 - 自从:
- 11
-
-
Method Details
-
getPublicExponent
返回公共指数。- 返回:
- 公共指数
-
getPrimeP
返回primeP。- 返回:
- primeP
-
getPrimeQ
返回primeQ。- 返回:
- primeQ
-
getPrimeExponentP
返回primeExponentP。- 返回:
- primeExponentP
-
getPrimeExponentQ
返回primeExponentQ。- 返回:
- primeExponentQ
-
getCrtCoefficient
返回crtCoefficient。- 返回:
- crtCoefficient
-