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
Fields Modifier and Type Field Description static StringMAX_PADDING_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AbstractPbkdf2PasswordHashProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.intgetMaxPaddingLength()voidinit(Config.Scope config)Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedvoidsetMaxPaddingLength(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 Detail
-
MAX_PADDING_LENGTH_PROPERTY
public static final String MAX_PADDING_LENGTH_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Config.Scope config)
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<PasswordHashProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<PasswordHashProvider>
-
close
public void close()
Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<PasswordHashProvider>
-
getMaxPaddingLength
public int getMaxPaddingLength()
-
setMaxPaddingLength
public void setMaxPaddingLength(int maxPaddingLength)
-
-