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 String
MAX_PADDING_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AbstractPbkdf2PasswordHashProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is called when the server shuts down.int
getMaxPaddingLength()
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 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: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
public void postInit(KeycloakSessionFactory factory)
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)
-
-