java.lang.Object
java.security.spec.RSAPrivateKeySpec
java.security.spec.RSAMultiPrimePrivateCrtKeySpec
- すべての実装されたインタフェース:
 KeySpec
public class RSAMultiPrimePrivateCrtKeySpec extends RSAPrivateKeySpec
このクラスは、RSAマルチ・プライム秘密鍵秘密鍵を指定します。これは、効率のために中国剰余定理(CRT)情報の値を使用したPKCS#1 v2.2標準で定義されます。
- 導入されたバージョン:
 - 1.4
 - 関連項目:
 Key,KeyFactory,KeySpec,PKCS8EncodedKeySpec,RSAPrivateKeySpec,RSAPublicKeySpec,RSAOtherPrimeInfo
- 
コンストラクタのサマリー
コンストラクタコンストラクタ説明RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)新しいRSAMultiPrimePrivateCrtKeySpecを作成します。RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)その他のキー・パラメータを含む新しいRSAMultiPrimePrivateCrtKeySpecを作成します。 - 
メソッドのサマリー
修飾子と型メソッド説明crtCoefficientを返します。otherPrimeInfoの複製を返します。2つの素因数(pとq)だけしかない場合はnullを返します。primeExponentPを返します。primeExponentQを返します。primePを返します。primeQを返します。公開指数を返します。クラス java.security.spec.RSAPrivateKeySpecで宣言されたメソッド
getModulus, getParams, getPrivateExponent 
- 
コンストラクタの詳細
- 
RSAMultiPrimePrivateCrtKeySpec
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)新しいRSAMultiPrimePrivateCrtKeySpecを作成します。このオブジェクトの構築時に、
otherPrimeInfoの内容が後続の変更に影響されないようにコピーされます。- パラメータ:
 modulus- モジュラスnpublicExponent- 公開指数eprivateExponent- 非公開指数dprimeP- nの素因数pprimeQ- nの素因数qprimeExponentP- d mod (p-1)primeExponentQ- d mod (q-1)crtCoefficient- 中国剰余定理の係数q-1 mod potherPrimeInfo- 残りの素数の組を指定します。ただし、主なファクタが2つのみの場合は、Nullを指定できます。- 例外:
 NullPointerException-otherPrimeInfo以外の指定されたパラメータのいずれかがNULLである場合IllegalArgumentException- 空の(長さが0)otherPrimeInfoが指定された場合
 - 
RSAMultiPrimePrivateCrtKeySpec
public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)その他のキー・パラメータを含む新しいRSAMultiPrimePrivateCrtKeySpecを作成します。このオブジェクトの構築時に、
otherPrimeInfoの内容が後続の変更に影響されないようにコピーされます。- パラメータ:
 modulus- モジュラスnpublicExponent- 公開指数eprivateExponent- 非公開指数dprimeP- nの素因数pprimeQ- nの素因数qprimeExponentP- d mod (p-1)primeExponentQ- d mod (q-1)crtCoefficient- 中国剰余定理の係数q-1 mod potherPrimeInfo- 残りの素数の組を指定します。ただし、主なファクタが2つのみの場合は、Nullを指定できます。keyParams- キーに関連付けられているパラメータ- 例外:
 NullPointerException-otherPrimeInfoとkeyParamsを除き、指定されたパラメータのいずれかがNULLであるかどうかIllegalArgumentException- 空の(長さが0)otherPrimeInfoが指定された場合- 導入されたバージョン:
 - 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。
 
 - 
getOtherPrimeInfo
public RSAOtherPrimeInfo[] getOtherPrimeInfo()otherPrimeInfoの複製を返します。2つの素因数(pとq)だけしかない場合はnullを返します。- 戻り値:
 - otherPrimeInfo。 このメソッドが呼び出されるたびに新しい配列を返す。
 
 
 -