Class PrefixedSessionStore

  • All Implemented Interfaces:
    org.pac4j.core.context.session.SessionStore

    public class PrefixedSessionStore
    extends org.pac4j.jee.context.session.JEESessionStore
    A SessionStore using a prefix for all keys.
    Since:
    6.6.0
    • Field Summary

      • Fields inherited from class org.pac4j.jee.context.session.JEESessionStore

        httpSession, INSTANCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession​(org.pac4j.core.context.WebContext context, java.lang.Object trackableSession)  
      protected java.lang.String computePrefixedKey​(java.lang.String key)  
      java.util.Optional<java.lang.Object> get​(org.pac4j.core.context.WebContext context, java.lang.String key)  
      void set​(org.pac4j.core.context.WebContext context, java.lang.String key, java.lang.Object value)  
      • Methods inherited from class org.pac4j.jee.context.session.JEESessionStore

        destroySession, getNativeSession, getSessionId, getTrackableSession, renewSession
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrefixedSessionStore

        public PrefixedSessionStore()
      • PrefixedSessionStore

        protected PrefixedSessionStore​(javax.servlet.http.HttpSession httpSession)
    • Method Detail

      • computePrefixedKey

        protected java.lang.String computePrefixedKey​(java.lang.String key)
      • get

        public java.util.Optional<java.lang.Object> get​(org.pac4j.core.context.WebContext context,
                                                        java.lang.String key)
        Specified by:
        get in interface org.pac4j.core.context.session.SessionStore
        Overrides:
        get in class org.pac4j.jee.context.session.JEESessionStore
      • set

        public void set​(org.pac4j.core.context.WebContext context,
                        java.lang.String key,
                        java.lang.Object value)
        Specified by:
        set in interface org.pac4j.core.context.session.SessionStore
        Overrides:
        set in class org.pac4j.jee.context.session.JEESessionStore
      • buildFromTrackableSession

        public java.util.Optional<org.pac4j.core.context.session.SessionStore> buildFromTrackableSession​(org.pac4j.core.context.WebContext context,
                                                                                                         java.lang.Object trackableSession)
        Specified by:
        buildFromTrackableSession in interface org.pac4j.core.context.session.SessionStore
        Overrides:
        buildFromTrackableSession in class org.pac4j.jee.context.session.JEESessionStore