Package org.cyclos.impl.utils
Class MapSessionStore
- java.lang.Object
-
- org.cyclos.impl.utils.MapSessionStore
-
-
Constructor Summary
Constructors Constructor Description MapSessionStore(String id, Function<String,Object> getter, BiConsumer<String,Object> setter, Runnable destroy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.pac4j.core.context.session.SessionStore>buildFromTrackableSession(org.pac4j.core.context.WebContext context, Object trackableSession)booleandestroySession(org.pac4j.core.context.WebContext context)Optional<Object>get(org.pac4j.core.context.WebContext context, String key)Optional<String>getSessionId(org.pac4j.core.context.WebContext context, boolean createSession)Optional<Object>getTrackableSession(org.pac4j.core.context.WebContext context)booleanrenewSession(org.pac4j.core.context.WebContext context)voidset(org.pac4j.core.context.WebContext context, String key, Object value)
-
-
-
Method Detail
-
buildFromTrackableSession
public Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession(org.pac4j.core.context.WebContext context, Object trackableSession)
- Specified by:
buildFromTrackableSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext context)
- Specified by:
destroySessionin interfaceorg.pac4j.core.context.session.SessionStore
-
get
public Optional<Object> get(org.pac4j.core.context.WebContext context, String key)
- Specified by:
getin interfaceorg.pac4j.core.context.session.SessionStore
-
getSessionId
public Optional<String> getSessionId(org.pac4j.core.context.WebContext context, boolean createSession)
- Specified by:
getSessionIdin interfaceorg.pac4j.core.context.session.SessionStore
-
getTrackableSession
public Optional<Object> getTrackableSession(org.pac4j.core.context.WebContext context)
- Specified by:
getTrackableSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context)
- Specified by:
renewSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
-