Package org.yamcs.security
Interface PasswordHasher
- All Known Implementing Classes:
PBKDF2PasswordHasher
public interface PasswordHasher
-
Method Summary
Modifier and TypeMethodDescriptioncreateHash
(char[] password) boolean
validatePassword
(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
-