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) |
protected final InfinispanKeycloakTransaction tx
protected final SessionEventsSenderTransaction clusterEventsSenderTx
public InfinispanAuthenticationSessionProvider(KeycloakSession session, InfinispanKeyGenerator keyGenerator, org.infinispan.Cache<String,RootAuthenticationSessionEntity> cache)
public RootAuthenticationSessionModel createRootAuthenticationSession(RealmModel realm)
AuthenticationSessionProvider
createRootAuthenticationSession
in interface AuthenticationSessionProvider
public RootAuthenticationSessionModel createRootAuthenticationSession(String id, RealmModel realm)
createRootAuthenticationSession
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)
AuthenticationSessionProvider
updateNonlocalSessionAuthNotes
in interface AuthenticationSessionProvider
authNotesFragment
- Map with authNote values. Auth note is removed if the corresponding value in the map is null
.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 © 2020 JBoss by Red Hat. All rights reserved.