Class RemoteUserLoginFailureProviderFactory
java.lang.Object
org.keycloak.models.sessions.infinispan.remote.RemoteUserLoginFailureProviderFactory
- All Implemented Interfaces:
UpdaterFactory<LoginFailureKey,,LoginFailureEntity, LoginFailuresUpdater> RemoteChangeLogTransaction.SharedState<LoginFailureKey,,LoginFailureEntity> UserLoginFailureProviderFactory<RemoteUserLoginFailureProvider>,EnvironmentDependentProviderFactory,ProviderFactory<RemoteUserLoginFailureProvider>,ServerInfoAwareProviderFactory
public class RemoteUserLoginFailureProviderFactory
extends Object
implements UserLoginFailureProviderFactory<RemoteUserLoginFailureProvider>, UpdaterFactory<LoginFailureKey,LoginFailureEntity,LoginFailuresUpdater>, EnvironmentDependentProviderFactory, RemoteChangeLogTransaction.SharedState<LoginFailureKey,LoginFailureEntity>, ServerInfoAwareProviderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.infinispan.util.concurrent.BlockingManagerorg.infinispan.client.hotrod.RemoteCache<LoginFailureKey,LoginFailureEntity> cache()voidclose()This is called when the server shuts down.create(KeycloakSession session) create(LoginFailureKey key, LoginFailureEntity entity) Creates anUpdaterfor an entity created by the current Keycloak transaction.deleted(LoginFailureKey key) Deletes a entity that was not previous read by the Keycloak transaction.Optional method used to declare that a ProviderFactory has a dependency on one or more Providers.Returns the metadata for each configuration property supported by this factory.getId()Return actual info about the provider.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.intintorder()voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedvoidsetMaxRetries(int maxRetries) wrapFromCache(LoginFailureKey key, LoginFailureEntity value, long version) Wraps an entity read from the Infinispan cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.sessions.infinispan.changes.remote.updater.UpdaterFactory
wrapFromCache
-
Field Details
-
PROTO_ENTITY
-
-
Constructor Details
-
RemoteUserLoginFailureProviderFactory
public RemoteUserLoginFailureProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
order
public int order()- Specified by:
orderin interfaceProviderFactory<RemoteUserLoginFailureProvider>
-
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.
-
getConfigMetadata
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory<RemoteUserLoginFailureProvider>- Returns:
- a list with the metadata for each configuration property supported by this factory
-
getOperationalInfo
Description copied from interface:ServerInfoAwareProviderFactoryReturn actual info about the provider. This info contains information about provider's configuration and operational conditions (eg. errors in connection to remote systems etc) which is shown on "Server Info" page then.- Specified by:
getOperationalInfoin interfaceServerInfoAwareProviderFactory- Returns:
- Map with keys describing value and relevant values itself
-
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<RemoteUserLoginFailureProvider>
-
create
Description copied from interface:UpdaterFactoryCreates anUpdaterfor an entity created by the current Keycloak transaction.- Specified by:
createin interfaceUpdaterFactory<LoginFailureKey,LoginFailureEntity, LoginFailuresUpdater> - Parameters:
key- The Infinispan key.entity- The Infinispan value.- Returns:
- The
Updaterto be used when updating the entity state.
-
wrapFromCache
public LoginFailuresUpdater wrapFromCache(LoginFailureKey key, LoginFailureEntity value, long version) Description copied from interface:UpdaterFactoryWraps an entity read from the Infinispan cache.- Specified by:
wrapFromCachein interfaceUpdaterFactory<LoginFailureKey,LoginFailureEntity, LoginFailuresUpdater> - Parameters:
key- The Infinispan key.value- The Infinispan value.version- The entry version.- Returns:
- The
Updaterto be used when updating the entity state.
-
deleted
Description copied from interface:UpdaterFactoryDeletes a entity that was not previous read by the Keycloak transaction.- Specified by:
deletedin interfaceUpdaterFactory<LoginFailureKey,LoginFailureEntity, LoginFailuresUpdater> - Parameters:
key- The Infinispan key.- Returns:
- The
Updaterfor a deleted entity.
-
cache
- Specified by:
cachein interfaceRemoteChangeLogTransaction.SharedState<LoginFailureKey,LoginFailureEntity>
-
maxRetries
public int maxRetries()- Specified by:
maxRetriesin interfaceRemoteChangeLogTransaction.SharedState<LoginFailureKey,LoginFailureEntity>
-
backOffBaseTimeMillis
public int backOffBaseTimeMillis()- Specified by:
backOffBaseTimeMillisin interfaceRemoteChangeLogTransaction.SharedState<LoginFailureKey,LoginFailureEntity>
-
blockingManager
public org.infinispan.util.concurrent.BlockingManager blockingManager()- Specified by:
blockingManagerin interfaceRemoteChangeLogTransaction.SharedState<LoginFailureKey,LoginFailureEntity>
-
setMaxRetries
public void setMaxRetries(int maxRetries)
-