Package org.keycloak.credential.hash
Class Pbkdf2PasswordHashProvider
- java.lang.Object
- 
- org.keycloak.credential.hash.Pbkdf2PasswordHashProvider
 
- 
- All Implemented Interfaces:
- PasswordHashProvider,- Provider
 
 public class Pbkdf2PasswordHashProvider extends Object implements PasswordHashProvider - Author:
- Kunal Kerkar
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEFAULT_DERIVED_KEY_SIZE
 - 
Constructor SummaryConstructors Constructor Description Pbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations, int minPbkdf2PasswordLengthForPadding)Pbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations, int maxPaddingLength, int derivedKeySize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stringencode(String rawPassword, int iterations)PasswordCredentialModelencodedCredential(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, wait
 - 
Methods inherited from interface org.keycloak.credential.hash.PasswordHashProviderencode, policyCheck, verify
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_DERIVED_KEY_SIZEpublic static final int DEFAULT_DERIVED_KEY_SIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
policyCheckpublic boolean policyCheck(PasswordPolicy policy, PasswordCredentialModel credential) - Specified by:
- policyCheckin interface- PasswordHashProvider
 
 - 
encodedCredentialpublic PasswordCredentialModel encodedCredential(String rawPassword, int iterations) - Specified by:
- encodedCredentialin interface- PasswordHashProvider
 
 - 
encodepublic String encode(String rawPassword, int iterations) - Specified by:
- encodein interface- PasswordHashProvider
 
 - 
verifypublic boolean verify(String rawPassword, PasswordCredentialModel credential) - Specified by:
- verifyin interface- PasswordHashProvider
 
 
- 
 
-