Package org.keycloak.credential.hash
Interface PasswordHashProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
Pbkdf2PasswordHashProvider
- Author:
- Kunal Kerkar
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
credentialHashingStrength
(PasswordCredentialModel credential) Returns a string that denotes a hashing strength for a password (do not confuse with strength of the password itself!)default String
Deprecated.default void
encode
(String rawPassword, int iterations, CredentialModel credential) Deprecated.Exists due the backwards compatibility.encodedCredential
(String rawPassword, int iterations) default boolean
policyCheck
(PasswordPolicy policy, CredentialModel credential) Deprecated.Exists due the backwards compatibility.boolean
policyCheck
(PasswordPolicy policy, PasswordCredentialModel credential) default boolean
verify
(String rawPassword, CredentialModel credential) Deprecated.Exists due the backwards compatibility.boolean
verify
(String rawPassword, PasswordCredentialModel credential)
-
Method Details
-
policyCheck
-
encodedCredential
-
encode
Deprecated.Exists due the backwards compatibility. It is recommended to useencodedCredential(String, int)
-
verify
-
credentialHashingStrength
Returns a string that denotes a hashing strength for a password (do not confuse with strength of the password itself!) The default implementation is returning the number of iterations used for hashing password. Another example could be memory and parallelism configuration for the Argon2 algorithm. This can be used for example in a metric showing how many hashes were performed with what configuration- Parameters:
credential
- The credential for which we want to obtain the string- Returns:
- string identifying hashing strength
-
policyCheck
Deprecated.Exists due the backwards compatibility. It is recommended to usepolicyCheck(PasswordPolicy, PasswordCredentialModel)
-
encode
Deprecated.Exists due the backwards compatibility. It is recommended to useencodedCredential(String, int)
} -
verify
Deprecated.Exists due the backwards compatibility. It is recommended to useverify(String, PasswordCredentialModel)
-