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 PasswordHashProvider
public boolean verify(String rawPassword, UserCredentialValueModel credential)
verify
in interface PasswordHashProvider
public PasswordHashProvider create(KeycloakSession session)
create
in interface ProviderFactory<PasswordHashProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<PasswordHashProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<PasswordHashProvider>
public void close()
ProviderFactory
close
in interface Provider
close
in interface ProviderFactory<PasswordHashProvider>
public String getId()
getId
in interface ProviderFactory<PasswordHashProvider>
Copyright © 2016 JBoss by Red Hat. All rights reserved.