JavaTM 2 Platform
Standard Ed. 6

java.security.spec
类 RSAOtherPrimeInfo

java.lang.Object
  继承者 java.security.spec.RSAOtherPrimeInfo

public class RSAOtherPrimeInfo
extends Object

此类表示 RSA 的 OtherPrimeInfo 结构中的三元组(素数、指数和素数),如 PKCS#1 v2.1 中所定义的。RSA 的 OtherPrimeInfo 的 ASN.1 语法如下:

 OtherPrimeInfo ::= SEQUENCE {
   prime INTEGER,
   exponent INTEGER,
   coefficient INTEGER
   }

 

从以下版本开始:
1.4
另请参见:
RSAPrivateCrtKeySpec, RSAMultiPrimePrivateCrtKey

构造方法摘要
RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
          给定如 PKCS#1 中所定义的素数、primeExponent 和 crtCoefficient,创建一个新的 RSAOtherPrimeInfo
 
方法摘要
 BigInteger getCrtCoefficient()
          返回素数的 crtCoefficient。
 BigInteger getExponent()
          返回素数的指数。
 BigInteger getPrime()
          返回素数。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RSAOtherPrimeInfo

public RSAOtherPrimeInfo(BigInteger prime,
                         BigInteger primeExponent,
                         BigInteger crtCoefficient)
给定如 PKCS#1 中所定义的素数、primeExponent 和 crtCoefficient,创建一个新的 RSAOtherPrimeInfo

参数:
prime - n 的素数因子。
primeExponent - 指数。
crtCoefficient - Chinese Remainder Theorem 系数。
抛出:
NullPointerException - 如果任一参数(即:primeprimeExponentcrtCoefficient)为 null。
方法详细信息

getPrime

public final BigInteger getPrime()
返回素数。

返回:
素数。

getExponent

public final BigInteger getExponent()
返回素数的指数。

返回:
primeExponent。

getCrtCoefficient

public final BigInteger getCrtCoefficient()
返回素数的 crtCoefficient。

返回:
crtCoefficient。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only