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

クラスRSAPrivateKeySpec

    • コンストラクタの詳細

      • RSAPrivateKeySpec

        public RSAPrivateKeySpec​(BigInteger modulus,
                                 BigInteger privateExponent)
        新しいRSAPrivateKeySpecを作成します。
        パラメータ:
        modulus - モジュラス
        privateExponent - 非公開指数
      • RSAPrivateKeySpec

        public RSAPrivateKeySpec​(BigInteger modulus,
                                 BigInteger privateExponent,
                                 AlgorithmParameterSpec params)
        追加のキー・パラメータを使用して、新しいRSAPrivateKeySpecを作成します。
        パラメータ:
        modulus - モジュラス
        privateExponent - 非公開指数
        params - このキーに関連付けられているパラメータはNullでもかまいません
        導入されたバージョン:
        11
    • メソッドの詳細

      • getModulus

        public BigInteger getModulus()
        モジュラスを返します。
        戻り値:
        モジュラス
      • getPrivateExponent

        public BigInteger getPrivateExponent()
        非公開指数を返します。
        戻り値:
        非公開指数
      • getParams

        public AlgorithmParameterSpec getParams()
        このキーに関連付けられたパラメータを返します。値が存在しない場合はNullでもかまいません。
        戻り値:
        このキーに関連付けられているパラメータ
        導入されたバージョン:
        11