Package org.codelibs.fess.helper
Interface PasswordHashHelper.PasswordEncoder
- All Known Implementing Classes:
PasswordHashHelper.BcryptPasswordEncoder
- Enclosing class:
PasswordHashHelper
protected static interface PasswordHashHelper.PasswordEncoder
Internal encoder abstraction. Kept package-private/inner to avoid
leaking public API surface.
-
Method Summary
-
Method Details
-
encode
Encodes the raw password.- Parameters:
rawPassword- the plain-text password- Returns:
- the encoded hash (without any
{id}prefix)
-
matches
Verifies the raw password against the encoded hash.- Parameters:
rawPassword- the plain-text passwordencodedPassword- the encoded hash (without{id}prefix)- Returns:
trueif matched
-