Class PlayCacheSessionStore

    • Constructor Detail

      • PlayCacheSessionStore

        protected PlayCacheSessionStore()
      • PlayCacheSessionStore

        @Inject
        public PlayCacheSessionStore​(play.cache.SyncCacheApi cache)
      • PlayCacheSessionStore

        public PlayCacheSessionStore​(com.google.inject.Provider<play.cache.SyncCacheApi> cacheProvider)
    • Method Detail

      • getOrCreateSessionId

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

        protected String getSessionIdFromSessionOrRequest​(PlayWebContext context)
      • setSessionIdInSession

        protected void setSessionIdInSession​(PlayWebContext context,
                                             String sessionId)
      • destroySession

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

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

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

        public String getPrefix()
      • setPrefix

        public void setPrefix​(String prefix)
      • getTimeout

        public int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)
      • setDefaultTimeout

        protected void setDefaultTimeout()