public class RSAPrivateCrtKeySpec
extends RSAPrivateKeySpec
java.lang.Object | ||
↳ | java.security.spec.RSAPrivateKeySpec | |
↳ | java.security.spec.RSAPrivateCrtKeySpec |
该类使用中国剩余定理(CRT)信息值为效率指定RSA私钥,如PKCS#1标准中所定义。
Public constructors |
|
---|---|
RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) 根据PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient创建新的 |
Public methods |
|
---|---|
BigInteger |
getCrtCoefficient() 返回crtCoefficient。 |
BigInteger |
getPrimeExponentP() 返回primeExponentP。 |
BigInteger |
getPrimeExponentQ() 返回primeExponentQ。 |
BigInteger |
getPrimeP() 返回primeP。 |
BigInteger |
getPrimeQ() 返回primeQ。 |
BigInteger |
getPublicExponent() 返回公共指数。 |
Inherited methods |
|
---|---|
From class java.security.spec.RSAPrivateKeySpec
|
|
From class java.lang.Object
|
RSAPrivateCrtKeySpec (BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
根据PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient创建新的 RSAPrivateCrtKeySpec
。
Parameters | |
---|---|
modulus |
BigInteger : the modulus n |
publicExponent |
BigInteger : the public exponent e |
privateExponent |
BigInteger : the private exponent d |
primeP |
BigInteger : the prime factor p of n |
primeQ |
BigInteger : the prime factor q of n |
primeExponentP |
BigInteger : this is d mod (p-1) |
primeExponentQ |
BigInteger : this is d mod (q-1) |
crtCoefficient |
BigInteger : the Chinese Remainder Theorem coefficient q-1 mod p |
BigInteger getCrtCoefficient ()
返回crtCoefficient。
Returns | |
---|---|
BigInteger |
the crtCoefficient |
BigInteger getPrimeExponentP ()
返回primeExponentP。
Returns | |
---|---|
BigInteger |
the primeExponentP |
BigInteger getPrimeExponentQ ()
返回primeExponentQ。
Returns | |
---|---|
BigInteger |
the primeExponentQ |
BigInteger getPublicExponent ()
返回公共指数。
Returns | |
---|---|
BigInteger |
the public exponent |