|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.security.spec.RSAPrivateKeySpec
java.security.spec.RSAMultiPrimePrivateCrtKeySpec
public class RSAMultiPrimePrivateCrtKeySpec
如 PKCS#1 v2.1 中所定义的,此类为了提高效率,使用 Chinese Remainder Theorem (CRT) 信息值指定 RSA 多素数专用密钥。
Key,
KeyFactory,
KeySpec,
PKCS8EncodedKeySpec,
RSAPrivateKeySpec,
RSAPublicKeySpec,
RSAOtherPrimeInfo| 构造方法摘要 | |
|---|---|
RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient,
RSAOtherPrimeInfo[] otherPrimeInfo)
给定系数、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、crtCoefficient 和如 PKCS#1 v2.1 中所定义的 otherPrimeInfo,创建一个新的 RSAMultiPrimePrivateCrtKeySpec。 |
|
| 方法摘要 | |
|---|---|
BigInteger |
getCrtCoefficient()
返回 crtCoefficient。 |
RSAOtherPrimeInfo[] |
getOtherPrimeInfo()
返回 otherPrimeInfo 的副本,如果仅有两个素数因子(p 和 q),则返回 null。 |
BigInteger |
getPrimeExponentP()
返回 primeExponentP。 |
BigInteger |
getPrimeExponentQ()
返回 primeExponentQ。 |
BigInteger |
getPrimeP()
返回 primeP。 |
BigInteger |
getPrimeQ()
返回 primeQ。 |
BigInteger |
getPublicExponent()
返回公用指数。 |
| 从类 java.security.spec.RSAPrivateKeySpec 继承的方法 |
|---|
getModulus, getPrivateExponent |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger primeP,
BigInteger primeQ,
BigInteger primeExponentP,
BigInteger primeExponentQ,
BigInteger crtCoefficient,
RSAOtherPrimeInfo[] otherPrimeInfo)
RSAMultiPrimePrivateCrtKeySpec。
注意,要复制 otherPrimeInfo 的内容,以防止以后在构造此对象时发生修改。
modulus - 系数 n。publicExponent - 公用指数 e。privateExponent - 专用指数 d。primeP - n 的素数因子 p。primeQ - n 的素数因子 q。primeExponentP - 这是 d mod (p-1)。primeExponentQ - 这是 d mod (q-1)。crtCoefficient - Chinese Remainder Theorem 系数 q-1 除以 p 所得的余数。otherPrimeInfo - 其余素数的三元组,如果仅有两个素数因子(p 和 q),则可以指定 null。
NullPointerException - 如果任一参数(即:modulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ 和 crtCoefficient)为 null。
IllegalArgumentException - 如果为空(即:长度为 0),则指定 otherPrimeInfo。| 方法详细信息 |
|---|
public BigInteger getPublicExponent()
public BigInteger getPrimeP()
public BigInteger getPrimeQ()
public BigInteger getPrimeExponentP()
public BigInteger getPrimeExponentQ()
public BigInteger getCrtCoefficient()
public RSAOtherPrimeInfo[] getOtherPrimeInfo()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。