public class Pbkdf2PasswordHashProvider extends Object implements PasswordHashProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DERIVED_KEY_SIZE |
| Constructor and Description |
|---|
Pbkdf2PasswordHashProvider(String providerId,
String pbkdf2Algorithm,
int defaultIterations) |
Pbkdf2PasswordHashProvider(String providerId,
String pbkdf2Algorithm,
int defaultIterations,
int derivedKeySize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
encode(String rawPassword,
int iterations) |
PasswordCredentialModel |
encodedCredential(String rawPassword,
int iterations) |
boolean |
policyCheck(PasswordPolicy policy,
PasswordCredentialModel credential) |
boolean |
verify(String rawPassword,
PasswordCredentialModel credential) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, policyCheck, verifypublic static final int DEFAULT_DERIVED_KEY_SIZE
public Pbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations)
public boolean policyCheck(PasswordPolicy policy, PasswordCredentialModel credential)
policyCheck in interface PasswordHashProviderpublic PasswordCredentialModel encodedCredential(String rawPassword, int iterations)
encodedCredential in interface PasswordHashProviderpublic String encode(String rawPassword, int iterations)
encode in interface PasswordHashProviderpublic boolean verify(String rawPassword, PasswordCredentialModel credential)
verify in interface PasswordHashProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.