- java.lang.Object
-
- java.security.spec.RSAPrivateKeySpec
-
- java.security.spec.RSAPrivateCrtKeySpec
-
- All Implemented Interfaces:
-
KeySpec
public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
该类指定PKCS#1标准中定义的RSA私钥,使用中文余数定理(CRT)信息值进行效率。- 从以下版本开始:
- 1.2
- 另请参见:
-
Key,KeyFactory,KeySpec,PKCS8EncodedKeySpec,RSAPrivateKeySpec,RSAPublicKeySpec
-
-
构造方法摘要
构造方法 Constructor 描述 RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)创建一个新的RSAPrivateCrtKeySpec给定在PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 BigIntegergetCrtCoefficient()返回crtCoefficient。BigIntegergetPrimeExponentP()返回primeExponentP。BigIntegergetPrimeExponentQ()返回primeExponentQ。BigIntegergetPrimeP()返回primeP。BigIntegergetPrimeQ()返回primeQ。BigIntegergetPublicExponent()返回公共指数。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class java.security.spec.RSAPrivateKeySpec
getModulus, getPrivateExponent
-
-
-
-
构造方法详细信息
-
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
给定新的RSAPrivateCrtKeySpec给定在PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient。- 参数
-
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
-
-
方法详细信息
-
getPublicExponent
public BigInteger getPublicExponent()
返回公共指数。- 结果
- 公众指数
-
getPrimeP
public BigInteger getPrimeP()
返回primeP。- 结果
- 黄金
-
getPrimeQ
public BigInteger getPrimeQ()
返回primeQ。- 结果
- 最好的
-
getPrimeExponentP
public BigInteger getPrimeExponentP()
返回primeExponentP。- 结果
- primeExponentP
-
getPrimeExponentQ
public BigInteger getPrimeExponentQ()
返回primeExponentQ。- 结果
- primeExponentQ
-
getCrtCoefficient
public BigInteger getCrtCoefficient()
返回crtCoefficient。- 结果
- crt系数
-
-