Class LocalSessionManagementStrategy
- java.lang.Object
-
- org.keycloak.adapters.springsecurity.management.LocalSessionManagementStrategy
-
- All Implemented Interfaces:
SessionManagementStrategy
public class LocalSessionManagementStrategy extends Object implements SessionManagementStrategy
Created by scott on 4/24/15.
-
-
Constructor Summary
Constructors Constructor Description LocalSessionManagementStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Removes all sessions.Collection<javax.servlet.http.HttpSession>getAll()Returns a collection containing all sessions.javax.servlet.http.HttpSessionremove(String id)The unique identifier for the session to remove.voidstore(javax.servlet.http.HttpSession session)Stores the given session.
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:SessionManagementStrategyRemoves all sessions.- Specified by:
clearin interfaceSessionManagementStrategy
-
getAll
public Collection<javax.servlet.http.HttpSession> 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
public javax.servlet.http.HttpSession remove(String id)
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
-
-