Package org.keycloak.adapters.spi
Interface SessionIdMapper
- All Known Implementing Classes:
InMemorySessionIdMapper
public interface SessionIdMapper
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all mappings from this mapper.getSessionFromSSO(String sso) Returns HTTP session ID from the given user session ID.getUserSessions(String principal) Returns set of HTTP session IDs for the given principal.booleanhasSession(String id) Returnstrueif the mapper contains mapping for the given HTTP session ID.voidEstablishes mapping between user session ID, principal and HTTP session ID.voidremoveSession(String session) Removes mappings for the given HTTP session ID.
-
Method Details
-
hasSession
Returnstrueif the mapper contains mapping for the given HTTP session ID.- Parameters:
id-- Returns:
-
clear
void clear()Clears all mappings from this mapper. -
getUserSessions
Returns set of HTTP session IDs for the given principal.- Parameters:
principal- Principal- Returns:
-
getSessionFromSSO
Returns HTTP session ID from the given user session ID.- Parameters:
sso- User session ID- Returns:
-
map
Establishes mapping between user session ID, principal and HTTP session ID.- Parameters:
sso- User session IDprincipal- Principalsession- HTTP session ID
-
removeSession
Removes mappings for the given HTTP session ID.- Parameters:
session- HTTP session ID.
-