Interface PasswordEncoder

All Known Implementing Classes:
PasswordEncoder.Pbkdf2

public interface PasswordEncoder
One-way password hashing. pbkdf2() unless another is configured.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    encode(CharSequence password)
     
    boolean
    matches(CharSequence password, String encoded)
    Constant-time; false for anything this encoder did not produce.
    PBKDF2-HMAC-SHA256, 600,000 iterations (OWASP 2023), a random 16-byte salt — JDK only.
  • Method Details

    • encode

      String encode(CharSequence password)
    • matches

      boolean matches(CharSequence password, String encoded)
      Constant-time; false for anything this encoder did not produce.
    • pbkdf2

      static PasswordEncoder pbkdf2()
      PBKDF2-HMAC-SHA256, 600,000 iterations (OWASP 2023), a random 16-byte salt — JDK only.