JavaTM Platform
Standard Ed. 6

java.security.spec
クラス RSAMultiPrimePrivateCrtKeySpec

java.lang.Object
  上位を拡張 java.security.spec.RSAPrivateKeySpec
      上位を拡張 java.security.spec.RSAMultiPrimePrivateCrtKeySpec
すべての実装されたインタフェース:
KeySpec

public class RSAMultiPrimePrivateCrtKeySpec
extends RSAPrivateKeySpec

このクラスは、中国剰余定理 (CRT) の情報の値を使って RSA マルチプライム非公開鍵 (PKCS#1 v2.1 の定義による) を効率を向上させるために指定します。

導入されたバージョン:
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)
          PKCS#1 v2.1 に定義された modulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、crtCoefficient、および otherPrimeInfo を指定し、新しい RSAMultiPrimePrivateCrtKeySpec を作成します。
 
メソッドの概要
 BigInteger getCrtCoefficient()
          crtCoefficient を返します。
 RSAOtherPrimeInfo[] getOtherPrimeInfo()
          otherPrimeInfo の複製を返します。
 BigInteger getPrimeExponentP()
          primeExponentP を返します。
 BigInteger getPrimeExponentQ()
          primeExponentQ を返します。
 BigInteger getPrimeP()
          primeP を返します。
 BigInteger getPrimeQ()
          primeQ を返します。
 BigInteger getPublicExponent()
          公開指数を返します。
 
クラス java.security.spec.RSAPrivateKeySpec から継承されたメソッド
getModulus, getPrivateExponent
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RSAMultiPrimePrivateCrtKeySpec

public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
                                      BigInteger publicExponent,
                                      BigInteger privateExponent,
                                      BigInteger primeP,
                                      BigInteger primeQ,
                                      BigInteger primeExponentP,
                                      BigInteger primeExponentQ,
                                      BigInteger crtCoefficient,
                                      RSAOtherPrimeInfo[] otherPrimeInfo)
PKCS#1 v2.1 に定義された modulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、crtCoefficient、および otherPrimeInfo を指定し、新しい RSAMultiPrimePrivateCrtKeySpec を作成します。

このオブジェクトの構築時に、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-1 mod p
otherPrimeInfo - 残りのプライムの三重項。2 つの素因数 (p と q) だけしかない場合は null
例外:
NullPointerException - moduluspublicExponentprivateExponentprimePprimeQprimeExponentPprimeExponentQcrtCoefficient のいずれかのパラメータが null の場合
IllegalArgumentException - 空の (長さが 0) otherPrimeInfo が指定された場合
メソッドの詳細

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このメソッドが呼び出されるたびに新しい配列を返す

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。