Package org.keycloak.credential.hash
Class Pbkdf2PasswordHashProvider
java.lang.Object
org.keycloak.credential.hash.Pbkdf2PasswordHashProvider
- All Implemented Interfaces:
PasswordHashProvider
,Provider
Implementation PBKDF2 password hash algorithm.
- Author:
- Kunal Kerkar
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPbkdf2PasswordHashProvider
(String providerId, String pbkdf2Algorithm, int defaultIterations, int minPbkdf2PasswordLengthForPadding) Pbkdf2PasswordHashProvider
(String providerId, String pbkdf2Algorithm, int defaultIterations, int maxPaddingLength, int derivedKeySize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
encodedCredential
(String rawPassword, int iterations) boolean
policyCheck
(PasswordPolicy policy, PasswordCredentialModel credential) boolean
verify
(String rawPassword, PasswordCredentialModel credential) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.credential.hash.PasswordHashProvider
encode, policyCheck, verify
-
Field Details
-
DEFAULT_DERIVED_KEY_SIZE
public static final int DEFAULT_DERIVED_KEY_SIZE- See Also:
-
-
Constructor Details
-
Pbkdf2PasswordHashProvider
-
Pbkdf2PasswordHashProvider
-
-
Method Details
-
policyCheck
- Specified by:
policyCheck
in interfacePasswordHashProvider
-
encodedCredential
- Specified by:
encodedCredential
in interfacePasswordHashProvider
-
encode
- Specified by:
encode
in interfacePasswordHashProvider
-
verify
- Specified by:
verify
in interfacePasswordHashProvider
-
close
public void close() -
getPbkdf2Algorithm
-