public class Pbkdf2PasswordHashProvider extends Object implements PasswordHashProviderFactory, PasswordHashProvider
| Constructor and Description |
|---|
Pbkdf2PasswordHashProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the server shuts down.
|
PasswordHashProvider |
create(KeycloakSession session) |
UserCredentialValueModel |
encode(String rawPassword,
int iterations) |
String |
getId() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
boolean |
verify(String rawPassword,
UserCredentialValueModel credential) |
public static final String ID
public UserCredentialValueModel encode(String rawPassword, int iterations)
encode in interface PasswordHashProviderpublic boolean verify(String rawPassword, UserCredentialValueModel credential)
verify in interface PasswordHashProviderpublic PasswordHashProvider create(KeycloakSession session)
create in interface ProviderFactory<PasswordHashProvider>public void init(Config.Scope config)
ProviderFactoryinit in interface ProviderFactory<PasswordHashProvider>public void postInit(KeycloakSessionFactory factory)
ProviderFactorypostInit in interface ProviderFactory<PasswordHashProvider>public void close()
ProviderFactoryclose in interface Providerclose in interface ProviderFactory<PasswordHashProvider>public String getId()
getId in interface ProviderFactory<PasswordHashProvider>Copyright © 2016 JBoss by Red Hat. All rights reserved.