public class InfinispanAuthenticationSessionProvider extends Object implements AuthenticationSessionProvider
| Modifier and Type | Field and Description |
|---|---|
protected SessionEventsSenderTransaction |
clusterEventsSenderTx |
protected InfinispanKeycloakTransaction |
tx |
| Constructor and Description |
|---|
InfinispanAuthenticationSessionProvider(KeycloakSession session,
InfinispanKeyGenerator keyGenerator,
org.infinispan.Cache<String,RootAuthenticationSessionEntity> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RootAuthenticationSessionModel |
createRootAuthenticationSession(RealmModel realm) |
RootAuthenticationSessionModel |
createRootAuthenticationSession(RealmModel realm,
String id) |
protected String |
generateTabId() |
org.infinispan.Cache<String,RootAuthenticationSessionEntity> |
getCache() |
RootAuthenticationSessionModel |
getRootAuthenticationSession(RealmModel realm,
String authenticationSessionId) |
void |
onClientRemoved(RealmModel realm,
ClientModel client) |
protected void |
onClientRemovedEvent(String realmId,
String clientUuid) |
void |
onRealmRemoved(RealmModel realm) |
protected void |
onRealmRemovedEvent(String realmId) |
void |
removeExpired(RealmModel realm) |
void |
removeRootAuthenticationSession(RealmModel realm,
RootAuthenticationSessionModel authenticationSession) |
void |
updateNonlocalSessionAuthNotes(AuthenticationSessionCompoundId compoundId,
Map<String,String> authNotesFragment) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRootAuthenticationSessionprotected final InfinispanKeycloakTransaction tx
protected final SessionEventsSenderTransaction clusterEventsSenderTx
public InfinispanAuthenticationSessionProvider(KeycloakSession session, InfinispanKeyGenerator keyGenerator, org.infinispan.Cache<String,RootAuthenticationSessionEntity> cache)
public RootAuthenticationSessionModel createRootAuthenticationSession(RealmModel realm)
createRootAuthenticationSession in interface AuthenticationSessionProviderpublic RootAuthenticationSessionModel createRootAuthenticationSession(RealmModel realm, String id)
createRootAuthenticationSession in interface AuthenticationSessionProviderpublic void removeExpired(RealmModel realm)
removeExpired in interface AuthenticationSessionProviderpublic void onRealmRemoved(RealmModel realm)
onRealmRemoved in interface AuthenticationSessionProviderprotected void onRealmRemovedEvent(String realmId)
public void onClientRemoved(RealmModel realm, ClientModel client)
onClientRemoved in interface AuthenticationSessionProviderpublic void updateNonlocalSessionAuthNotes(AuthenticationSessionCompoundId compoundId, Map<String,String> authNotesFragment)
updateNonlocalSessionAuthNotes in interface AuthenticationSessionProviderpublic RootAuthenticationSessionModel getRootAuthenticationSession(RealmModel realm, String authenticationSessionId)
getRootAuthenticationSession in interface AuthenticationSessionProviderpublic void removeRootAuthenticationSession(RealmModel realm, RootAuthenticationSessionModel authenticationSession)
removeRootAuthenticationSession in interface AuthenticationSessionProviderpublic org.infinispan.Cache<String,RootAuthenticationSessionEntity> getCache()
protected String generateTabId()
Copyright © 2020 JBoss by Red Hat. All rights reserved.