public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
Key
, KeyFactory
, KeySpec
, PKCS8EncodedKeySpec
, RSAPrivateKeySpec
, RSAPublicKeySpec
Constructor and Description |
---|
RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
创建一个新的
RSAPrivateCrtKeySpec 给定在PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient。
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getCrtCoefficient()
返回crtCoefficient。
|
BigInteger |
getPrimeExponentP()
返回primeExponentP。
|
BigInteger |
getPrimeExponentQ()
返回primeExponentQ。
|
BigInteger |
getPrimeP()
返回primeP。
|
BigInteger |
getPrimeQ()
返回素数Q。
|
BigInteger |
getPublicExponent()
返回公共指数。
|
getModulus, getPrivateExponent
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
RSAPrivateCrtKeySpec
给定在PKCS#1中定义的模数,publicExponent,privateExponent,primeP,primeQ,primeExponentP,primeExponentQ和crtCoefficient。
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
public BigInteger getPublicExponent()
public BigInteger getPrimeP()
public BigInteger getPrimeQ()
public BigInteger getPrimeExponentP()
public BigInteger getPrimeExponentQ()
public BigInteger getCrtCoefficient()
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.