public class RSAOtherPrimeInfo
extends Object
java.lang.Object | |
↳ | java.security.spec.RSAOtherPrimeInfo |
该类表示PKCS#1 v2.1中定义的RSA的OtherPrimeInfo结构内的三元组(prime,exponent和coefficient)。 RSA的OtherPrimeInfo的ASN.1语法如下:
OtherPrimeInfo ::= SEQUENCE { prime INTEGER, exponent INTEGER, coefficient INTEGER }
Public constructors |
|
---|---|
RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient) 根据PKCS#1中定义的prime,primeExponent和crtCoefficient创建一个新的 |
Public methods |
|
---|---|
final BigInteger |
getCrtCoefficient() 返回素数的crtCoefficient。 |
final BigInteger |
getExponent() 返回素数的指数。 |
final BigInteger |
getPrime() 返回素数。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
RSAOtherPrimeInfo (BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
根据PKCS#1中定义的prime,primeExponent和crtCoefficient创建一个新的 RSAOtherPrimeInfo
。
Parameters | |
---|---|
prime |
BigInteger : the prime factor of n. |
primeExponent |
BigInteger : the exponent. |
crtCoefficient |
BigInteger : the Chinese Remainder Theorem coefficient. |
Throws | |
---|---|
NullPointerException |
if any of the parameters, i.e. prime , primeExponent , crtCoefficient , is null. |
BigInteger getCrtCoefficient ()
返回素数的crtCoefficient。
Returns | |
---|---|
BigInteger |
the crtCoefficient. |
BigInteger getExponent ()
返回素数的指数。
Returns | |
---|---|
BigInteger |
the primeExponent. |