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 给出的弹性模量,publicexponent,privateexponent,primep,primeq,primeexponentp,primeexponentq,crtcoefficient,和otherprimeinfo在PKCS 1 V2.1 #定义。
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getCrtCoefficient()
返回crtcoefficient。
|
RSAOtherPrimeInfo[] |
getOtherPrimeInfo()
返回一个拷贝的otherprimeinfo或null,如果只有两个主要因素(P和Q)。
|
BigInteger |
getPrimeExponentP()
返回primeexponentp。
|
BigInteger |
getPrimeExponentQ()
返回primeexponentq。
|
BigInteger |
getPrimeP()
返回primep。
|
BigInteger |
getPrimeQ()
返回primeq。
|
BigInteger |
getPublicExponent()
返回公共指数。
|
getModulus, getPrivateExponent
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)
RSAMultiPrimePrivateCrtKeySpec
给出的弹性模量,publicexponent,privateexponent,primep,primeq,primeexponentp,primeexponentq,crtcoefficient,和otherprimeinfo在PKCS 1 V2.1 #定义。
注意,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模页
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.