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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.pac4j.core.util.serializer.JavaSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.pac4j.core.context.session.SessionStore>
buildFromTrackableSession
(org.pac4j.core.context.WebContext context, Object trackableSession) protected Object
clearUserProfiles
(Object value) static byte[]
compressBytes
(byte[] srcBytes) boolean
destroySession
(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 void
putSessionValues
(org.pac4j.core.context.WebContext context, Map<String, Object> values) boolean
renewSession
(org.pac4j.core.context.WebContext context) void
void
setSessionName
(String sessionName) static byte[]
uncompressBytes
(byte[] zippedBytes)
-
Field Details
-
JAVA_SERIALIZER
public static final org.pac4j.core.util.serializer.JavaSerializer JAVA_SERIALIZER
-
-
Constructor Details
-
PlayCookieSessionStore
public PlayCookieSessionStore() -
PlayCookieSessionStore
-
-
Method Details
-
getSessionId
public Optional<String> getSessionId(org.pac4j.core.context.WebContext context, boolean createSession) - Specified by:
getSessionId
in interfaceorg.pac4j.core.context.session.SessionStore
-
get
- Specified by:
get
in interfaceorg.pac4j.core.context.session.SessionStore
-
getSessionValues
-
set
- Specified by:
set
in interfaceorg.pac4j.core.context.session.SessionStore
-
putSessionValues
-
destroySession
public boolean destroySession(org.pac4j.core.context.WebContext context) - Specified by:
destroySession
in interfaceorg.pac4j.core.context.session.SessionStore
-
getTrackableSession
- Specified by:
getTrackableSession
in 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:
buildFromTrackableSession
in interfaceorg.pac4j.core.context.session.SessionStore
-
renewSession
public boolean renewSession(org.pac4j.core.context.WebContext context) - Specified by:
renewSession
in interfaceorg.pac4j.core.context.session.SessionStore
-
clearUserProfiles
-
uncompressBytes
public static byte[] uncompressBytes(byte[] zippedBytes) -
compressBytes
public static byte[] compressBytes(byte[] srcBytes) -
getSessionName
-
setSessionName
-