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)
SessionIdMapper
true
if the mapper contains mapping for the given HTTP session ID.hasSession
in interface SessionIdMapper
public void clear()
SessionIdMapper
clear
in interface SessionIdMapper
public Set<String> getUserSessions(String principal)
SessionIdMapper
getUserSessions
in interface SessionIdMapper
principal
- Principalpublic String getSessionFromSSO(String sso)
SessionIdMapper
getSessionFromSSO
in interface SessionIdMapper
sso
- User session IDpublic void map(String sso, String principal, String session)
SessionIdMapper
map
in interface SessionIdMapper
sso
- User session IDprincipal
- Principalsession
- HTTP session IDpublic void removeSession(String session)
SessionIdMapper
removeSession
in interface SessionIdMapper
session
- HTTP session ID.Copyright © 2019 JBoss by Red Hat. All rights reserved.