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,
int authSessionsLimit) |
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 |
removeAllExpired() |
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, wait
createRootAuthenticationSession
protected final InfinispanKeycloakTransaction tx
protected final SessionEventsSenderTransaction clusterEventsSenderTx
public InfinispanAuthenticationSessionProvider(KeycloakSession session, InfinispanKeyGenerator keyGenerator, org.infinispan.Cache<String,RootAuthenticationSessionEntity> cache, int authSessionsLimit)
public RootAuthenticationSessionModel createRootAuthenticationSession(RealmModel realm)
createRootAuthenticationSession
in interface AuthenticationSessionProvider
public RootAuthenticationSessionModel createRootAuthenticationSession(RealmModel realm, String id)
createRootAuthenticationSession
in interface AuthenticationSessionProvider
public void removeAllExpired()
removeAllExpired
in interface AuthenticationSessionProvider
public void removeExpired(RealmModel realm)
removeExpired
in interface AuthenticationSessionProvider
public void onRealmRemoved(RealmModel realm)
onRealmRemoved
in interface AuthenticationSessionProvider
protected void onRealmRemovedEvent(String realmId)
public void onClientRemoved(RealmModel realm, ClientModel client)
onClientRemoved
in interface AuthenticationSessionProvider
public void updateNonlocalSessionAuthNotes(AuthenticationSessionCompoundId compoundId, Map<String,String> authNotesFragment)
updateNonlocalSessionAuthNotes
in interface AuthenticationSessionProvider
public RootAuthenticationSessionModel getRootAuthenticationSession(RealmModel realm, String authenticationSessionId)
getRootAuthenticationSession
in interface AuthenticationSessionProvider
public void removeRootAuthenticationSession(RealmModel realm, RootAuthenticationSessionModel authenticationSession)
removeRootAuthenticationSession
in interface AuthenticationSessionProvider
public org.infinispan.Cache<String,RootAuthenticationSessionEntity> getCache()
protected String generateTabId()
Copyright © 2021 JBoss by Red Hat. All rights reserved.