Class LocalSessionManagementStrategy
java.lang.Object
org.keycloak.adapters.springsecurity.management.LocalSessionManagementStrategy
- All Implemented Interfaces:
SessionManagementStrategy
Created by scott on 4/24/15.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes all sessions.Collection<javax.servlet.http.HttpSession>
getAll()
Returns a collection containing all sessions.javax.servlet.http.HttpSession
The unique identifier for the session to remove.void
store
(javax.servlet.http.HttpSession session) Stores the given session.
-
Constructor Details
-
LocalSessionManagementStrategy
public LocalSessionManagementStrategy()
-
-
Method Details
-
clear
public void clear()Description copied from interface:SessionManagementStrategy
Removes all sessions.- Specified by:
clear
in interfaceSessionManagementStrategy
-
getAll
Description copied from interface:SessionManagementStrategy
Returns a collection containing all sessions.- Specified by:
getAll
in interfaceSessionManagementStrategy
- Returns:
- a
Collection
of all knownHttpSession
s, if any; an emptyCollection
otherwise
-
store
public void store(javax.servlet.http.HttpSession session) Description copied from interface:SessionManagementStrategy
Stores the given session.- Specified by:
store
in interfaceSessionManagementStrategy
- Parameters:
session
- theHttpSession
to store (required)
-
remove
Description copied from interface:SessionManagementStrategy
The unique identifier for the session to remove.- Specified by:
remove
in interfaceSessionManagementStrategy
- Parameters:
id
- the unique identifier for the session to remove (required)- Returns:
- the
HttpSession
if it exists;null
otherwise
-