Package org.pac4j.play.store
Class PlayCookieSessionStore
java.lang.Object
org.pac4j.play.store.PlayCookieSessionStore
- All Implemented Interfaces:
org.pac4j.core.context.session.SessionStore
@Singleton
public class PlayCookieSessionStore
extends Object
implements org.pac4j.core.context.session.SessionStore
A session store which only uses the Play Session cookie for storage, allowing for a stateless backend.
- Since:
- 6.1.0
- Author:
- Vidmantas Zemleris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.pac4j.core.context.session.SessionStore>buildFromTrackableSession(org.pac4j.core.context.WebContext context, Object trackableSession) protected ObjectclearUserProfiles(Object value) static byte[]compressBytes(byte[] srcBytes) booleandestroySession(org.pac4j.core.context.WebContext context) getSessionId(org.pac4j.core.context.WebContext context, boolean createSession) getSessionValues(org.pac4j.core.context.WebContext context) getTrackableSession(org.pac4j.core.context.WebContext context) protected voidputSessionValues(org.pac4j.core.context.WebContext context, Map<String, Object> values) booleanrenewSession(org.pac4j.core.context.WebContext context) voidstatic byte[]uncompressBytes(byte[] zippedBytes)
-
Constructor Details
-
PlayCookieSessionStore
public PlayCookieSessionStore() -
PlayCookieSessionStore
-
-
Method Details
-
getSessionId
public Optional<String> getSessionId(org.pac4j.core.context.WebContext context, boolean createSession) - Specified by:
getSessionIdin interfaceorg.pac4j.core.context.session.SessionStore
-
get
- Specified by:
getin interfaceorg.pac4j.core.context.session.SessionStore
-
getSessionValues
-
set
- Specified by:
setin interfaceorg.pac4j.core.context.session.SessionStore
-
putSessionValues
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext context) - Specified by:
destroySessionin interfaceorg.pac4j.core.context.session.SessionStore
-
getTrackableSession
- Specified by:
getTrackableSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
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
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context) - Specified by:
renewSessionin interfaceorg.pac4j.core.context.session.SessionStore
-
clearUserProfiles
-
uncompressBytes
public static byte[] uncompressBytes(byte[] zippedBytes) -
compressBytes
public static byte[] compressBytes(byte[] srcBytes)
-