- All Known Implementing Classes:
PBKDF2PasswordHasher
public interface PasswordHasher
-
Method Summary
Modifier and TypeMethodDescriptioncreateHash(char[] password) booleanvalidatePassword(char[] password, String expectedHash) Validates a password using a hash.
-
Method Details
-
createHash
-
validatePassword
Validates a password using a hash.- Parameters:
password- the password to checkexpectedHash- the hash of the valid password- Returns:
- true if the password is correct, false if not
-