Package org.yamcs.security
Interface PasswordHasher
-
- All Known Implementing Classes:
PBKDF2PasswordHasher
public interface PasswordHasher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateHash(char[] password)booleanvalidatePassword(char[] password, String expectedHash)Validates a password using a hash.
-
-
-
Method Detail
-
createHash
String createHash(char[] password)
-
validatePassword
boolean validatePassword(char[] password, String expectedHash)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
-
-