Most visited

Recently visited

Added in API level 1

RSAPrivateCrtKeySpec

public class RSAPrivateCrtKeySpec
extends RSAPrivateKeySpec

java.lang.Object
   ↳ java.security.spec.RSAPrivateKeySpec
     ↳ java.security.spec.RSAPrivateCrtKeySpec


该类使用中国剩余定理(CRT)信息值为效率指定RSA私钥,如PKCS#1标准中所定义。

也可以看看:

Summary

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创建新的 RSAPrivateCrtKeySpec

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

Public constructors

RSAPrivateCrtKeySpec

Added in API level 1
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

Public methods

getCrtCoefficient

Added in API level 1
BigInteger getCrtCoefficient ()

返回crtCoefficient。

Returns
BigInteger the crtCoefficient

getPrimeExponentP

Added in API level 1
BigInteger getPrimeExponentP ()

返回primeExponentP。

Returns
BigInteger the primeExponentP

getPrimeExponentQ

Added in API level 1
BigInteger getPrimeExponentQ ()

返回primeExponentQ。

Returns
BigInteger the primeExponentQ

getPrimeP

Added in API level 1
BigInteger getPrimeP ()

返回primeP。

Returns
BigInteger the primeP

getPrimeQ

Added in API level 1
BigInteger getPrimeQ ()

返回primeQ。

Returns
BigInteger the primeQ

getPublicExponent

Added in API level 1
BigInteger getPublicExponent ()

返回公共指数。

Returns
BigInteger the public exponent

Hooray!