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) |
void |
encode(String rawPassword,
int iterations,
CredentialModel credential) |
boolean |
policyCheck(PasswordPolicy policy,
CredentialModel credential) |
boolean |
verify(String rawPassword,
CredentialModel credential) |
public static final int DEFAULT_DERIVED_KEY_SIZE
public Pbkdf2PasswordHashProvider(String providerId, String pbkdf2Algorithm, int defaultIterations)
public boolean policyCheck(PasswordPolicy policy, CredentialModel credential)
policyCheck in interface PasswordHashProviderpublic void encode(String rawPassword, int iterations, CredentialModel credential)
encode in interface PasswordHashProviderpublic String encode(String rawPassword, int iterations)
encode in interface PasswordHashProviderpublic boolean verify(String rawPassword, CredentialModel credential)
verify in interface PasswordHashProviderCopyright © 2018 JBoss by Red Hat. All rights reserved.