public interface PasswordDigester
| Modifier and Type | Method and Description |
|---|---|
String |
digest(String password)
Create a digest of the provided password.
|
String |
getId()
Returns unique identifier of this digester to be able to distinguish between various hashing algorithms.
|
boolean |
isDefault()
Should this digester become the default password digester, which is used in the system?
|
boolean |
matches(String password,
String digest)
Checks, if the provided clear text password matches the specified digest, considering all aspects like salt, hashing iterations, etc.
|
String digest(String password)
password - the clear text password to be hashedString getId()
boolean isDefault()
true if this digester becomes the default one, which is used in the systemboolean matches(String password, String digest)
password - the clear text password to be checkeddigest - the digest against which the password will be matchedtrue, if the provided password matches its hashed equivalentCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.