Most visited

Recently visited

Added in API level 1

RSAOtherPrimeInfo

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
   }

 

也可以看看:

Summary

Public constructors

RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)

根据PKCS#1中定义的prime,primeExponent和crtCoefficient创建一个新的 RSAOtherPrimeInfo

Public methods

final BigInteger getCrtCoefficient()

返回素数的crtCoefficient。

final BigInteger getExponent()

返回素数的指数。

final BigInteger getPrime()

返回素数。

Inherited methods

From class java.lang.Object

Public constructors

RSAOtherPrimeInfo

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

Public methods

getCrtCoefficient

Added in API level 1
BigInteger getCrtCoefficient ()

返回素数的crtCoefficient。

Returns
BigInteger the crtCoefficient.

getExponent

Added in API level 1
BigInteger getExponent ()

返回素数的指数。

Returns
BigInteger the primeExponent.

getPrime

Added in API level 1
BigInteger getPrime ()

返回素数。

Returns
BigInteger the prime.

Hooray!