Class DbxStandardSessionStore

  • All Implemented Interfaces:
    DbxSessionStore

    public final class DbxStandardSessionStore
    extends java.lang.Object
    implements DbxSessionStore
    A DbxSessionStore implementation that stores the value using the standard HttpSession interface from the Java Servlet API. Example:
     DbxWebAuth getDbxWebAuth(HttpServletRequest request)
     {
         HttpSession session = request.getSession(true);
         String key = "dropbox-auth-csrf-token";
         DbxSessionStore csrfStore = new DbxStandardSessionStore(session, key);
         return new DbxWebAuth(..., csrfStore);
     }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      DbxStandardSessionStore​(jakarta.servlet.http.HttpSession session, java.lang.String key)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      java.lang.String get()  
      java.lang.String getKey()  
      jakarta.servlet.http.HttpSession getSession()  
      void set​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • DbxStandardSessionStore

        public DbxStandardSessionStore​(jakarta.servlet.http.HttpSession session,
                                       java.lang.String key)
    • Method Detail

      • getSession

        public jakarta.servlet.http.HttpSession getSession()
      • getKey

        public java.lang.String getKey()
      • set

        public void set​(java.lang.String value)
        Specified by:
        set in interface DbxSessionStore