java.lang.Object
java.security.spec.RSAOtherPrimeInfo
这个类表示RSA的OtherPrimeInfo结构中的三元组(素数、指数和系数),如PKCS#1 v2.2标准中定义的。RSA的OtherPrimeInfo的ASN.1语法如下:
OtherPrimeInfo ::= SEQUENCE {
prime INTEGER,
exponent INTEGER,
coefficient INTEGER
}
- 自版本:
- 1.4
- 参见:
-
Constructor Summary
ConstructorsConstructorDescriptionRSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient) 给定PKCS#1中定义的素数、素数指数和crtCoefficient,创建一个新的RSAOtherPrimeInfo。 -
Method Summary
Modifier and TypeMethodDescriptionfinal BigInteger返回素数的crtCoefficient。final BigInteger返回素数的指数。final BigIntegergetPrime()返回素数。
-
Constructor Details
-
RSAOtherPrimeInfo
给定PKCS#1中定义的素数、素数指数和crtCoefficient,创建一个新的RSAOtherPrimeInfo。- 参数:
-
prime- n的素数因子。 -
primeExponent- 指数。 -
crtCoefficient- 中国剩余定理系数。 - 抛出:
-
NullPointerException- 如果任何参数,即prime、primeExponent、crtCoefficient,为null。
-
-
Method Details
-
getPrime
返回素数。- 返回:
- 素数。
-
getExponent
返回素数的指数。- 返回:
- 素数指数。
-
getCrtCoefficient
返回素数的crtCoefficient。- 返回:
- crtCoefficient。
-