Package org.keycloak.credential.hash
Class AbstractPbkdf2PasswordHashProviderFactory
java.lang.Object
org.keycloak.credential.hash.AbstractPbkdf2PasswordHashProviderFactory
- All Implemented Interfaces:
PasswordHashProviderFactory
,ProviderFactory<PasswordHashProvider>
- Direct Known Subclasses:
Pbkdf2PasswordHashProviderFactory
,Pbkdf2Sha256PasswordHashProviderFactory
,Pbkdf2Sha512PasswordHashProviderFactory
public abstract class AbstractPbkdf2PasswordHashProviderFactory
extends Object
implements PasswordHashProviderFactory
- Author:
- Marek Posolda
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.int
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 initializedvoid
setMaxPaddingLength
(int maxPaddingLength) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ProviderFactory
create, getConfigMetadata, getId, order
-
Field Details
-
MAX_PADDING_LENGTH_PROPERTY
- See Also:
-
-
Constructor Details
-
AbstractPbkdf2PasswordHashProviderFactory
public AbstractPbkdf2PasswordHashProviderFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<PasswordHashProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<PasswordHashProvider>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<PasswordHashProvider>
-
getMaxPaddingLength
public int getMaxPaddingLength() -
setMaxPaddingLength
public void setMaxPaddingLength(int maxPaddingLength)
-