Class LocalSessionManagementStrategy
java.lang.Object
org.keycloak.adapters.springsecurity.management.LocalSessionManagementStrategy
- All Implemented Interfaces:
SessionManagementStrategy
Created by scott on 4/24/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all sessions.Collection<javax.servlet.http.HttpSession>getAll()Returns a collection containing all sessions.javax.servlet.http.HttpSessionThe unique identifier for the session to remove.voidstore(javax.servlet.http.HttpSession session) Stores the given session.
-
Constructor Details
-
LocalSessionManagementStrategy
public LocalSessionManagementStrategy()
-
-
Method Details
-
clear
public void clear()Description copied from interface:SessionManagementStrategyRemoves all sessions.- Specified by:
clearin interfaceSessionManagementStrategy
-
getAll
Description copied from interface:SessionManagementStrategyReturns a collection containing all sessions.- Specified by:
getAllin interfaceSessionManagementStrategy- Returns:
- a
Collectionof all knownHttpSessions, if any; an emptyCollectionotherwise
-
store
public void store(javax.servlet.http.HttpSession session) Description copied from interface:SessionManagementStrategyStores the given session.- Specified by:
storein interfaceSessionManagementStrategy- Parameters:
session- theHttpSessionto store (required)
-
remove
Description copied from interface:SessionManagementStrategyThe unique identifier for the session to remove.- Specified by:
removein interfaceSessionManagementStrategy- Parameters:
id- the unique identifier for the session to remove (required)- Returns:
- the
HttpSessionif it exists;nullotherwise
-