Interface PasswordHasher

All Known Implementing Classes:
PBKDF2PasswordHasher

public interface PasswordHasher
  • Method Summary

    Modifier and Type
    Method
    Description
    createHash(char[] password)
     
    boolean
    validatePassword(char[] password, String expectedHash)
    Validates a password using a hash.
  • Method Details

    • createHash

      String createHash(char[] password)
    • validatePassword

      boolean validatePassword(char[] password, String expectedHash)
      Validates a password using a hash.
      Parameters:
      password - the password to check
      expectedHash - the hash of the valid password
      Returns:
      true if the password is correct, false if not