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!