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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations, int minPbkdf2PasswordLengthForPadding) Pbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations, int maxPaddingLength, int derivedKeySize) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Exists due the backwards compatibility.encodedCredential(String rawPassword, int iterations) booleanpolicyCheck(PasswordPolicy policy, PasswordCredentialModel credential) booleanverify(String rawPassword, PasswordCredentialModel credential) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.credential.hash.PasswordHashProvidercredentialHashingStrength, encode, policyCheck, verify
- 
Field Details- 
DEFAULT_DERIVED_KEY_SIZEpublic static final int DEFAULT_DERIVED_KEY_SIZE- See Also:
 
 
- 
- 
Constructor Details- 
Pbkdf2PasswordHashProvider
- 
Pbkdf2PasswordHashProvider
 
- 
- 
Method Details- 
policyCheck- Specified by:
- policyCheckin interface- PasswordHashProvider
 
- 
encodedCredential- Specified by:
- encodedCredentialin interface- PasswordHashProvider
 
- 
encodeDescription copied from interface:PasswordHashProviderExists due the backwards compatibility. It is recommended to usePasswordHashProvider.encodedCredential(String, int)- Specified by:
- encodein interface- PasswordHashProvider
 
- 
verify- Specified by:
- verifyin interface- PasswordHashProvider
 
- 
closepublic void close()
- 
getPbkdf2Algorithm
 
-