java.lang.Object
java.security.spec.RSAPrivateKeySpec
java.security.spec.RSAPrivateCrtKeySpec
- すべての実装されたインタフェース:
KeySpec
public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
このクラスは、効率のために中国剰余定理(CRT)の情報の値を使用して、PKCS#1 v2.2標準で定義されているように、RSA非公開鍵を指定します。
- 導入されたバージョン:
- 1.2
- 関連項目:
Key
,KeyFactory
,KeySpec
,PKCS8EncodedKeySpec
,RSAPrivateKeySpec
,RSAPublicKeySpec
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
新しいRSAPrivateCrtKeySpec
を作成します。RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)
その他のキー・パラメータを含む新しいRSAPrivateCrtKeySpec
を作成します。 -
メソッドのサマリー
修飾子と型 メソッド 説明 BigInteger
getCrtCoefficient()
crtCoefficientを返します。BigInteger
getPrimeExponentP()
primeExponentPを返します。BigInteger
getPrimeExponentQ()
primeExponentQを返します。BigInteger
getPrimeP()
primePを返します。BigInteger
getPrimeQ()
primeQを返します。BigInteger
getPublicExponent()
公開指数を返します。クラス java.security.spec.RSAPrivateKeySpecで宣言されたメソッド
getModulus, getParams, getPrivateExponent
-
コンストラクタの詳細
-
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)新しいRSAPrivateCrtKeySpec
を作成します。- パラメータ:
modulus
- モジュラスnpublicExponent
- 公開指数eprivateExponent
- 非公開指数dprimeP
- nの素因数pprimeQ
- nの素因数qprimeExponentP
- d mod (p-1)primeExponentQ
- d mod (q-1)crtCoefficient
- 中国剰余定理の係数q-1 mod p
-
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)その他のキー・パラメータを含む新しいRSAPrivateCrtKeySpec
を作成します。- パラメータ:
modulus
- モジュラスnpublicExponent
- 公開指数eprivateExponent
- 非公開指数dprimeP
- nの素因数pprimeQ
- nの素因数qprimeExponentP
- d mod (p-1)primeExponentQ
- d mod (q-1)crtCoefficient
- 中国剰余定理の係数q-1 mod pkeyParams
- キーに関連付けられているパラメータ- 導入されたバージョン:
- 11
-
-
メソッドの詳細
-
getPublicExponent
public BigInteger getPublicExponent()公開指数を返します。- 戻り値:
- 公開指数
-
getPrimeP
public BigInteger getPrimeP()primePを返します。- 戻り値:
- primeP
-
getPrimeQ
public BigInteger getPrimeQ()primeQを返します。- 戻り値:
- primeQ
-
getPrimeExponentP
public BigInteger getPrimeExponentP()primeExponentPを返します。- 戻り値:
- primeExponentP
-
getPrimeExponentQ
public BigInteger getPrimeExponentQ()primeExponentQを返します。- 戻り値:
- primeExponentQ
-
getCrtCoefficient
public BigInteger getCrtCoefficient()crtCoefficientを返します。- 戻り値:
- crtCoefficient
-