Class InfinispanAuthenticationSessionProvider
java.lang.Object
org.keycloak.models.sessions.infinispan.InfinispanAuthenticationSessionProvider
- All Implemented Interfaces:
org.keycloak.provider.Provider,org.keycloak.sessions.AuthenticationSessionProvider
public class InfinispanAuthenticationSessionProvider
extends Object
implements org.keycloak.sessions.AuthenticationSessionProvider
- Author:
- Marek Posolda
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SessionEventsSenderTransactionprotected final InfinispanChangelogBasedTransaction<String,RootAuthenticationSessionEntity> -
Constructor Summary
ConstructorsConstructorDescriptionInfinispanAuthenticationSessionProvider(org.keycloak.models.KeycloakSession session, InfinispanChangelogBasedTransaction<String, RootAuthenticationSessionEntity> sessionTx, int authSessionsLimit) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.keycloak.sessions.RootAuthenticationSessionModelcreateRootAuthenticationSession(org.keycloak.models.RealmModel realm) org.keycloak.sessions.RootAuthenticationSessionModelcreateRootAuthenticationSession(org.keycloak.models.RealmModel realm, String id) org.infinispan.Cache<String,SessionEntityWrapper<RootAuthenticationSessionEntity>> getCache()org.keycloak.sessions.RootAuthenticationSessionModelgetRootAuthenticationSession(org.keycloak.models.RealmModel realm, String authenticationSessionId) voidvoidonRealmRemoved(org.keycloak.models.RealmModel realm) protected voidonRealmRemovedEvent(String realmId) voidremoveRootAuthenticationSession(org.keycloak.models.RealmModel realm, org.keycloak.sessions.RootAuthenticationSessionModel authenticationSession) voidupdateNonlocalSessionAuthNotes(org.keycloak.sessions.AuthenticationSessionCompoundId compoundId, Map<String, String> authNotesFragment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.sessions.AuthenticationSessionProvider
onClientRemoved, removeAllExpired, removeExpired
-
Field Details
-
sessionTx
protected final InfinispanChangelogBasedTransaction<String,RootAuthenticationSessionEntity> sessionTx -
clusterEventsSenderTx
-
-
Constructor Details
-
InfinispanAuthenticationSessionProvider
public InfinispanAuthenticationSessionProvider(org.keycloak.models.KeycloakSession session, InfinispanChangelogBasedTransaction<String, RootAuthenticationSessionEntity> sessionTx, int authSessionsLimit)
-
-
Method Details
-
createRootAuthenticationSession
public org.keycloak.sessions.RootAuthenticationSessionModel createRootAuthenticationSession(org.keycloak.models.RealmModel realm) - Specified by:
createRootAuthenticationSessionin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
createRootAuthenticationSession
public org.keycloak.sessions.RootAuthenticationSessionModel createRootAuthenticationSession(org.keycloak.models.RealmModel realm, String id) - Specified by:
createRootAuthenticationSessionin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
onRealmRemoved
public void onRealmRemoved(org.keycloak.models.RealmModel realm) - Specified by:
onRealmRemovedin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
onRealmRemovedEvent
-
updateNonlocalSessionAuthNotes
public void updateNonlocalSessionAuthNotes(org.keycloak.sessions.AuthenticationSessionCompoundId compoundId, Map<String, String> authNotesFragment) - Specified by:
updateNonlocalSessionAuthNotesin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
getRootAuthenticationSession
public org.keycloak.sessions.RootAuthenticationSessionModel getRootAuthenticationSession(org.keycloak.models.RealmModel realm, String authenticationSessionId) - Specified by:
getRootAuthenticationSessionin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
removeRootAuthenticationSession
public void removeRootAuthenticationSession(org.keycloak.models.RealmModel realm, org.keycloak.sessions.RootAuthenticationSessionModel authenticationSession) - Specified by:
removeRootAuthenticationSessionin interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-
close
public void close()- Specified by:
closein interfaceorg.keycloak.provider.Provider
-
getCache
public org.infinispan.Cache<String,SessionEntityWrapper<RootAuthenticationSessionEntity>> getCache() -
getRootAuthSessionTransaction
public InfinispanChangelogBasedTransaction<String,RootAuthenticationSessionEntity> getRootAuthSessionTransaction() -
migrate
- Specified by:
migratein interfaceorg.keycloak.sessions.AuthenticationSessionProvider
-