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

クラスRSAOtherPrimeInfo



  • public class RSAOtherPrimeInfo
    extends Object
    このクラスは、RSAのOtherPrimeInfo構造(PKCS#1 v2.1の定義による)内部の三重項(素数、指数、係数)を表します。 RSAのOtherPrimeInfoのASN.1構文を次に示します。
     OtherPrimeInfo ::= SEQUENCE {
       prime INTEGER,
       exponent INTEGER,
       coefficient INTEGER
       }
    
     
    導入されたバージョン:
    1.4
    関連項目:
    RSAPrivateCrtKeySpec, RSAMultiPrimePrivateCrtKey
    • コンストラクタの詳細

      • RSAOtherPrimeInfo

        public RSAOtherPrimeInfo​(BigInteger prime,
                                 BigInteger primeExponent,
                                 BigInteger crtCoefficient)
        PKCS#1に定義されたprime、primeExponent、crtCoefficientを指定し、新しいRSAOtherPrimeInfoを作成します。
        パラメータ:
        prime - nの素因数。
        primeExponent - 指数。
        crtCoefficient - 中国剰余定理の係数。
        例外:
        NullPointerException - パラメータ、つまりprimeprimeExponentcrtCoefficientのいずれかがnullの場合。
    • メソッドの詳細

      • getPrime

        public final BigInteger getPrime​()
        素数を返します。
        戻り値:
        素数。
      • getExponent

        public final BigInteger getExponent​()
        素数の指数を返します。
        戻り値:
        primeExponent。
      • getCrtCoefficient

        public final BigInteger getCrtCoefficient​()
        素数のcrtCoefficientを返します。
        戻り値:
        crtCoefficient。