Package org.keycloak.credential.hash
Interface PasswordHashProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
Pbkdf2PasswordHashProvider
- Author:
- Kunal Kerkar
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringcredentialHashingStrength(PasswordCredentialModel credential) Returns a string that denotes a hashing strength for a password (do not confuse with strength of the password itself!)default StringDeprecated.default voidencode(String rawPassword, int iterations, CredentialModel credential) Deprecated.Exists due the backwards compatibility.encodedCredential(String rawPassword, int iterations) default booleanpolicyCheck(PasswordPolicy policy, CredentialModel credential) Deprecated.Exists due the backwards compatibility.booleanpolicyCheck(PasswordPolicy policy, PasswordCredentialModel credential) default booleanverify(String rawPassword, CredentialModel credential) Deprecated.Exists due the backwards compatibility.booleanverify(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)
-