Class RemoteInfinispanAuthenticationSessionProviderFactory
java.lang.Object
org.keycloak.models.sessions.infinispan.remote.RemoteInfinispanAuthenticationSessionProviderFactory
- All Implemented Interfaces:
UpdaterFactory<String,,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> RemoteChangeLogTransaction.SharedState<String,,RootAuthenticationSessionEntity> org.keycloak.provider.EnvironmentDependentProviderFactory,org.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>,org.keycloak.provider.ServerInfoAwareProviderFactory,org.keycloak.sessions.AuthenticationSessionProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
public class RemoteInfinispanAuthenticationSessionProviderFactory
extends Object
implements org.keycloak.sessions.AuthenticationSessionProviderFactory<RemoteInfinispanAuthenticationSessionProvider>, UpdaterFactory<String,RootAuthenticationSessionEntity,RootAuthenticationSessionUpdater>, org.keycloak.provider.EnvironmentDependentProviderFactory, RemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>, org.keycloak.provider.ServerInfoAwareProviderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.infinispan.util.concurrent.BlockingManagerorg.infinispan.client.hotrod.RemoteCache<String,RootAuthenticationSessionEntity> cache()voidclose()create(String key, RootAuthenticationSessionEntity entity) Creates anUpdaterfor an entity created by the current Keycloak transaction.create(org.keycloak.models.KeycloakSession session) Deletes a entity that was not previous read by the Keycloak transaction.List<org.keycloak.provider.ProviderConfigProperty>getId()voidinit(org.keycloak.Config.Scope config) booleanisSupported(org.keycloak.Config.Scope config) intintorder()voidpostInit(org.keycloak.models.KeycloakSessionFactory factory) wrapFromCache(String key, RootAuthenticationSessionEntity 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
-
RemoteInfinispanAuthenticationSessionProviderFactory
public RemoteInfinispanAuthenticationSessionProviderFactory()
-
-
Method Details
-
isSupported
public boolean isSupported(org.keycloak.Config.Scope config) - Specified by:
isSupportedin interfaceorg.keycloak.provider.EnvironmentDependentProviderFactory
-
create
public RemoteInfinispanAuthenticationSessionProvider create(org.keycloak.models.KeycloakSession session) - Specified by:
createin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
init
public void init(org.keycloak.Config.Scope config) - Specified by:
initin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
postInit
public void postInit(org.keycloak.models.KeycloakSessionFactory factory) - Specified by:
postInitin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
getConfigMetadata
- Specified by:
getConfigMetadatain interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
getOperationalInfo
- Specified by:
getOperationalInfoin interfaceorg.keycloak.provider.ServerInfoAwareProviderFactory
-
create
Description copied from interface:UpdaterFactoryCreates anUpdaterfor an entity created by the current Keycloak transaction.- Specified by:
createin interfaceUpdaterFactory<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - Parameters:
key- The Infinispan key.entity- The Infinispan value.- Returns:
- The
Updaterto be used when updating the entity state.
-
wrapFromCache
public RootAuthenticationSessionUpdater wrapFromCache(String key, RootAuthenticationSessionEntity value, long version) Description copied from interface:UpdaterFactoryWraps an entity read from the Infinispan cache.- Specified by:
wrapFromCachein interfaceUpdaterFactory<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - 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<String,RootAuthenticationSessionEntity, RootAuthenticationSessionUpdater> - Parameters:
key- The Infinispan key.- Returns:
- The
Updaterfor a deleted entity.
-
cache
- Specified by:
cachein interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
getId
- Specified by:
getIdin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
order
public int order()- Specified by:
orderin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
dependsOn
- Specified by:
dependsOnin interfaceorg.keycloak.provider.ProviderFactory<RemoteInfinispanAuthenticationSessionProvider>
-
maxRetries
public int maxRetries()- Specified by:
maxRetriesin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
backOffBaseTimeMillis
public int backOffBaseTimeMillis()- Specified by:
backOffBaseTimeMillisin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-
blockingManager
public org.infinispan.util.concurrent.BlockingManager blockingManager()- Specified by:
blockingManagerin interfaceRemoteChangeLogTransaction.SharedState<String,RootAuthenticationSessionEntity>
-