public class InMemorySessionIdMapper extends Object implements SessionIdMapper
| Constructor and Description |
|---|
InMemorySessionIdMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all mappings from this mapper.
|
String |
getSessionFromSSO(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.
|
boolean |
hasSession(String id)
Returns
true if the mapper contains mapping for the given HTTP session ID. |
void |
map(String sso,
String principal,
String session)
Establishes mapping between user session ID, principal and HTTP session ID.
|
void |
removeSession(String session)
Removes mappings for the given HTTP session ID.
|
public boolean hasSession(String id)
SessionIdMappertrue if the mapper contains mapping for the given HTTP session ID.hasSession in interface SessionIdMapperpublic void clear()
SessionIdMapperclear in interface SessionIdMapperpublic Set<String> getUserSessions(String principal)
SessionIdMappergetUserSessions in interface SessionIdMapperprincipal - Principalpublic String getSessionFromSSO(String sso)
SessionIdMappergetSessionFromSSO in interface SessionIdMappersso - User session IDpublic void map(String sso, String principal, String session)
SessionIdMappermap in interface SessionIdMappersso - User session IDprincipal - Principalsession - HTTP session IDpublic void removeSession(String session)
SessionIdMapperremoveSession in interface SessionIdMappersession - HTTP session ID.Copyright © 2019 JBoss by Red Hat. All rights reserved.