クラス BCryptPasswordEncoder

java.lang.ObjectSE
org.springframework.security.crypto.password.AbstractValidatingPasswordEncoder
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
実装されているすべてのインターフェース:
PasswordEncoder

public class BCryptPasswordEncoder extends AbstractValidatingPasswordEncoder
BCrypt の強力なハッシュ関数を使用する PasswordEncoder の実装。クライアントは、オプションで「バージョン」($2a、$2b、$2y)と「強度」(別名 BCrypt のログラウンド)と SecureRandom インスタンスを提供できます。強度パラメーターが大きいほど、パスワードをハッシュするために(指数関数的に)より多くの作業が必要になります。デフォルト値は 10 です。
  • コンストラクターの詳細

    • BCryptPasswordEncoder

      public BCryptPasswordEncoder()
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(int strength)
      パラメーター:
      strength - 使用するログラウンド、4 〜 31
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(BCryptPasswordEncoder.BCryptVersion version)
      パラメーター:
      version - bcrypt のバージョン、2a、2b、2y
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(BCryptPasswordEncoder.BCryptVersion version, @Nullable SecureRandomSE random)
      パラメーター:
      version - bcrypt のバージョン、2a、2b、2y
      random - 使用するセキュアなランダムインスタンス
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(int strength, @Nullable SecureRandomSE random)
      パラメーター:
      strength - 使用するログラウンド、4 〜 31
      random - 使用するセキュアなランダムインスタンス
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(BCryptPasswordEncoder.BCryptVersion version, int strength)
      パラメーター:
      version - bcrypt のバージョン、2a、2b、2y
      strength - 使用するログラウンド、4 〜 31
    • BCryptPasswordEncoder

      public BCryptPasswordEncoder(BCryptPasswordEncoder.BCryptVersion version, int strength, @Nullable SecureRandomSE random)
      パラメーター:
      version - bcrypt のバージョン、2a、2b、2y
      strength - 使用するログラウンド、4 〜 31
      random - 使用するセキュアなランダムインスタンス
  • メソッドの詳細