Package org.keycloak.adapters.spi
Interface SessionIdMapper
-
- All Known Implementing Classes:
InMemorySessionIdMapper
public interface SessionIdMapper- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears all mappings from this mapper.StringgetSessionFromSSO(String sso)Returns HTTP session ID from the given user session ID.Set<String>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.voidmap(String sso, String principal, String session)Establishes mapping between user session ID, principal and HTTP session ID.voidremoveSession(String session)Removes mappings for the given HTTP session ID.
-
-
-
Method Detail
-
hasSession
boolean hasSession(String id)
Returnstrueif the mapper contains mapping for the given HTTP session ID.- Parameters:
id-- Returns:
-
clear
void clear()
Clears all mappings from this mapper.
-
getUserSessions
Set<String> getUserSessions(String principal)
Returns set of HTTP session IDs for the given principal.- Parameters:
principal- Principal- Returns:
-
getSessionFromSSO
String getSessionFromSSO(String sso)
Returns HTTP session ID from the given user session ID.- Parameters:
sso- User session ID- Returns:
-
map
void map(String sso, String principal, String session)
Establishes mapping between user session ID, principal and HTTP session ID.- Parameters:
sso- User session IDprincipal- Principalsession- HTTP session ID
-
removeSession
void removeSession(String session)
Removes mappings for the given HTTP session ID.- Parameters:
session- HTTP session ID.
-
-