public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec
Key , KeyFactory , KeySpec , PKCS8EncodedKeySpec , RSAPrivateKeySpec , RSAPublicKeySpec , RSAOtherPrimeInfo
| Constructor and Description |
|---|
RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)
创建一个新的
RSAMultiPrimePrivateCrtKeySpec给定在PKCS#1 v2.1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ,crtCoefficient和otherPrimeInfo。
|
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getCrtCoefficient()
返回crtCoefficient。
|
RSAOtherPrimeInfo[] |
getOtherPrimeInfo()
如果只有两个素因子(p和q),则返回otherPrimeInfo的副本或null。
|
BigInteger |
getPrimeExponentP()
返回primeExponentP。
|
BigInteger |
getPrimeExponentQ()
返回primeExponentQ。
|
BigInteger |
getPrimeP()
返回primeP。
|
BigInteger |
getPrimeQ()
返回素数Q。
|
BigInteger |
getPublicExponent()
返回公共指数。
|
getModulus, getPrivateExponentpublic RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)
RSAMultiPrimePrivateCrtKeySpec给定在PKCS#1 v2.1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ,crtCoefficient和otherPrimeInfo。
请注意, otherPrimeInfo的内容被复制以防止构建此对象时的后续修改。
modulus - 模数n。
publicExponent - 公众指数e。
privateExponent - 私有指数d。
primeP - n的素因子p。
primeQ - n的素因子q。
primeExponentP - 这是d mod(p-1)。
primeExponentQ - 这是d mod(q-1)。
crtCoefficient - 中国剩余定理系数q-1 mod p。
otherPrimeInfo - 如果只有两个素因子(p和q),则可以指定其余素数的三元组。
NullPointerException -如果任何一个参数,即
modulus ,
publicExponent ,
privateExponent ,
primeP ,
primeQ ,
primeExponentP ,
primeExponentQ ,
crtCoefficient ,为空。
IllegalArgumentException -如果一个空的,即,长度为0的,
otherPrimeInfo被指定。
public BigInteger getPublicExponent()
public BigInteger getPrimeP()
public BigInteger getPrimeQ()
public BigInteger getPrimeExponentP()
public BigInteger getPrimeExponentQ()
public BigInteger getCrtCoefficient()
public RSAOtherPrimeInfo[] getOtherPrimeInfo()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.