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, wait
encode, policyCheck, verify
public 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 PasswordHashProvider
public PasswordCredentialModel encodedCredential(String rawPassword, int iterations)
encodedCredential
in interface PasswordHashProvider
public String encode(String rawPassword, int iterations)
encode
in interface PasswordHashProvider
public boolean verify(String rawPassword, PasswordCredentialModel credential)
verify
in interface PasswordHashProvider
Copyright © 2021 JBoss by Red Hat. All rights reserved.