- java.lang.Object
-
- java.security.spec.RSAPrivateKeySpec
-
- java.security.spec.RSAPrivateCrtKeySpec
-
- すべての実装されたインタフェース:
KeySpec
public class RSAPrivateCrtKeySpec extends RSAPrivateKeySpec
このクラスは、中国剰余定理(CRT)の情報の値を使ってRSA非公開鍵(PKCS#1標準の定義による)を効率を向上させるために指定します。- 導入されたバージョン:
- 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)PKCS#1に定義されたmodulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、およびcrtCoefficientを指定し、新しいRSAPrivateCrtKeySpecを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 BigIntegergetCrtCoefficient()crtCoefficientを返します。BigIntegergetPrimeExponentP()primeExponentPを返します。BigIntegergetPrimeExponentQ()primeExponentQを返します。BigIntegergetPrimeP()primePを返します。BigIntegergetPrimeQ()primeQを返します。BigIntegergetPublicExponent()公開指数を返します。-
クラス java.lang.Objectで宣言されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
クラス java.security.spec.RSAPrivateKeySpecで宣言されたメソッド
getModulus, getPrivateExponent
-
-
-
-
コンストラクタの詳細
-
RSAPrivateCrtKeySpec
public RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
PKCS#1に定義されたmodulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、およびcrtCoefficientを指定し、新しいRSAPrivateCrtKeySpecを作成します。- パラメータ:
modulus- モジュラスnpublicExponent- 公開指数eprivateExponent- 非公開指数dprimeP- nの素因数pprimeQ- nの素因数qprimeExponentP- d mod (p-1)primeExponentQ- d mod (q-1)crtCoefficient- 中国剰余定理の係数q-1 mod p
-
-
メソッドの詳細
-
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
-
-