Package org.codelibs.fess.helper
Class PasswordHashHelper.BcryptPasswordEncoder
java.lang.Object
org.codelibs.fess.helper.PasswordHashHelper.BcryptPasswordEncoder
- All Implemented Interfaces:
PasswordHashHelper.PasswordEncoder
- Enclosing class:
PasswordHashHelper
protected class PasswordHashHelper.BcryptPasswordEncoder
extends Object
implements PasswordHashHelper.PasswordEncoder
BCrypt encoder backed by the vendored jBCrypt implementation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BcryptPasswordEncoder
protected BcryptPasswordEncoder()Default constructor.
-
-
Method Details
-
encode
Description copied from interface:PasswordHashHelper.PasswordEncoderEncodes the raw password.- Specified by:
encodein interfacePasswordHashHelper.PasswordEncoder- Parameters:
rawPassword- the plain-text password- Returns:
- the encoded hash (without any
{id}prefix)
-
matches
Description copied from interface:PasswordHashHelper.PasswordEncoderVerifies the raw password against the encoded hash.- Specified by:
matchesin interfacePasswordHashHelper.PasswordEncoder- Parameters:
rawPassword- the plain-text passwordencodedPassword- the encoded hash (without{id}prefix)- Returns:
trueif matched
-