Package org.keycloak.adapters.spi
Interface SessionIdMapperUpdater
public interface SessionIdMapperUpdater
Classes implementing this interface represent a mechanism for updating
SessionIdMapper entries.- Author:
- hmlnarik
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SessionIdMapperUpdaterSessionIdMapperentries are updated directly.static final SessionIdMapperUpdaterOnly HTTP session is manipulated with,SessionIdMapperentries are not updated by this updater and they have to be updated by some other means, e.g. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(SessionIdMapper idMapper) Delegates toSessionIdMapper.clear()method..voidmap(SessionIdMapper idMapper, String sso, String principal, String session) Delegates toSessionIdMapper.map(java.lang.String, java.lang.String, java.lang.String)method.booleanrefreshMapping(SessionIdMapper idMapper, String httpSessionId) Refreshes the mapping in theidMapperfrom the internal source of this mapped updater and maps it viaSessionIdMapper.map(java.lang.String, java.lang.String, java.lang.String)method.voidremoveSession(SessionIdMapper idMapper, String session) Delegates toSessionIdMapper.removeSession(java.lang.String)method.
-
Field Details
-
DIRECT
SessionIdMapperentries are updated directly. -
EXTERNAL
Only HTTP session is manipulated with,SessionIdMapperentries are not updated by this updater and they have to be updated by some other means, e.g. by some listener of HTTP session changes.
-
-
Method Details
-
clear
Delegates toSessionIdMapper.clear()method.. -
map
Delegates toSessionIdMapper.map(java.lang.String, java.lang.String, java.lang.String)method.- Parameters:
idMapper- Mappersso- User session IDprincipal- Principalsession- HTTP session ID
-
removeSession
Delegates toSessionIdMapper.removeSession(java.lang.String)method.- Parameters:
idMapper- Mappersession- HTTP session ID.
-
refreshMapping
Refreshes the mapping in theidMapperfrom the internal source of this mapped updater and maps it viaSessionIdMapper.map(java.lang.String, java.lang.String, java.lang.String)method.- Parameters:
idMapper- Mappersession- HTTP session ID.- Returns:
trueif the mapping existed in the internal source of this mapped updater and has been refreshed,falseotherwise
-