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