モジュール java.base
パッケージ java.security.spec

クラスRSAMultiPrimePrivateCrtKeySpec

    • コンストラクタの詳細

      • RSAMultiPrimePrivateCrtKeySpec

        public RSAMultiPrimePrivateCrtKeySpec​(BigInteger modulus,
                                              BigInteger publicExponent,
                                              BigInteger privateExponent,
                                              BigInteger primeP,
                                              BigInteger primeQ,
                                              BigInteger primeExponentP,
                                              BigInteger primeExponentQ,
                                              BigInteger crtCoefficient,
                                              RSAOtherPrimeInfo[] otherPrimeInfo)
        新しいRSAMultiPrimePrivateCrtKeySpecを作成します。

        このオブジェクトの構築時に、otherPrimeInfoの内容が後続の変更に影響されないようにコピーされます。

        パラメータ:
        modulus - モジュラスn
        publicExponent - 公開指数e
        privateExponent - 非公開指数d
        primeP - nの素因数p
        primeQ - qの素数係数q
        primeExponentP - d mod (p-1)
        primeExponentQ - d mod (q-1)
        crtCoefficient - 中国剰余定理の係数q-1 mod p
        otherPrimeInfo - 残りの素数の組を指定します。ただし、主なファクタが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 - モジュラス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つのみの場合は、Nullを指定できます。
        keyParams - キーに関連付けられているパラメータ
        例外:
        NullPointerException - otherPrimeInfokeyParamsを除き、指定されたパラメータのいずれかが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。 このメソッドが呼び出されるたびに新しい配列を返す。