public class SHA1HashPasswordAlgorithm extends Object implements PasswordAlgorithm
| Constructor and Description |
|---|
SHA1HashPasswordAlgorithm(String passwordSecret) |
| Modifier and Type | Method and Description |
|---|---|
String |
hash(String password) |
boolean |
matches(String hashedPassword,
String otherPassword) |
boolean |
supports(String hashedPassword) |
@Inject
public SHA1HashPasswordAlgorithm(@Named(value="password_secret")
String passwordSecret)
public boolean supports(String hashedPassword)
supports in interface PasswordAlgorithmpublic String hash(String password)
hash in interface PasswordAlgorithmpublic boolean matches(String hashedPassword, String otherPassword)
matches in interface PasswordAlgorithmCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.