Class PlayCookieSessionStore

  • All Implemented Interfaces:
    org.pac4j.core.context.session.SessionStore<PlayWebContext>, PlaySessionStore

    @Singleton
    public class PlayCookieSessionStore
    extends Object
    implements PlaySessionStore
    A PlaySesssionStore which only uses the Play Session cookie for storage, allowing for a stateless backend.
    Since:
    6.1.0
    Author:
    Vidmantas Zemleris
    • Field Detail

      • JAVA_SER_HELPER

        public static final org.pac4j.core.util.JavaSerializationHelper JAVA_SER_HELPER
    • Constructor Detail

      • PlayCookieSessionStore

        public PlayCookieSessionStore()
      • PlayCookieSessionStore

        public PlayCookieSessionStore​(DataEncrypter dataEncrypter)
    • Method Detail

      • getOrCreateSessionId

        public String getOrCreateSessionId​(PlayWebContext context)
        Specified by:
        getOrCreateSessionId in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>
      • destroySession

        public boolean destroySession​(PlayWebContext playWebContext)
        Specified by:
        destroySession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>
      • getTrackableSession

        public Optional<Object> getTrackableSession​(PlayWebContext playWebContext)
        Specified by:
        getTrackableSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>
      • buildFromTrackableSession

        public Optional<org.pac4j.core.context.session.SessionStore<PlayWebContext>> buildFromTrackableSession​(PlayWebContext playWebContext,
                                                                                                               Object o)
        Specified by:
        buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>
      • renewSession

        public boolean renewSession​(PlayWebContext playWebContext)
        Specified by:
        renewSession in interface org.pac4j.core.context.session.SessionStore<PlayWebContext>
      • clearUserProfiles

        protected Object clearUserProfiles​(Object value)
      • uncompressBytes

        public static byte[] uncompressBytes​(byte[] zippedBytes)
      • compressBytes

        public static byte[] compressBytes​(byte[] srcBytes)