Class InfinispanUserLoginFailureProviderFactory
java.lang.Object
org.keycloak.models.sessions.infinispan.InfinispanUserLoginFailureProviderFactory
- All Implemented Interfaces:
UserLoginFailureProviderFactory<InfinispanUserLoginFailureProvider>,EnvironmentDependentProviderFactory,ProviderEventListener,ProviderFactory<InfinispanUserLoginFailureProvider>
public class InfinispanUserLoginFailureProviderFactory
extends Object
implements UserLoginFailureProviderFactory<InfinispanUserLoginFailureProvider>, EnvironmentDependentProviderFactory, ProviderEventListener
- Author:
- Martin Kanis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) Optional method used to declare that a ProviderFactory has a dependency on one or more Providers.getId()voidinit(Config.Scope config) Only called once when the factory is first created.booleanisSupported(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.voidonEvent(ProviderEvent event) intorder()voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedprotected voidregisterClusterListeners(KeycloakSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata
-
Field Details
-
REALM_REMOVED_SESSION_EVENT
- See Also:
-
REMOVE_ALL_LOGIN_FAILURES_EVENT
- See Also:
-
-
Constructor Details
-
InfinispanUserLoginFailureProviderFactory
public InfinispanUserLoginFailureProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
dependsOn
Description copied from interface:ProviderFactoryOptional method used to declare that a ProviderFactory has a dependency on one or more Providers. If a Provider is declared here, it is guaranteed that the dependenciesProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory)method will be executed before this ProviderFactory'sProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory). Similarly, it's guaranteed thatProviderFactory.close()will be called on thisProviderFactorybeforeProviderFactory.close()is called on any of the dependent ProviderFactory implementations.- Specified by:
dependsOnin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
registerClusterListeners
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<InfinispanUserLoginFailureProvider>
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactoryCheck if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Parameters:
config- the provider configuration- Returns:
trueif the provider is supported. Otherwise,false.
-
onEvent
- Specified by:
onEventin interfaceProviderEventListener
-