Package com.dropbox.core
Class DbxStandardSessionStore
- java.lang.Object
-
- com.dropbox.core.DbxStandardSessionStore
-
- All Implemented Interfaces:
DbxSessionStore
public final class DbxStandardSessionStore extends java.lang.Object implements DbxSessionStore
ADbxSessionStore
implementation that stores the value using the standardHttpSession
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(javax.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()
javax.servlet.http.HttpSession
getSession()
void
set(java.lang.String value)
-
-
-
Method Detail
-
getSession
public javax.servlet.http.HttpSession getSession()
-
getKey
public java.lang.String getKey()
-
get
public java.lang.String get()
- Specified by:
get
in interfaceDbxSessionStore
-
set
public void set(java.lang.String value)
- Specified by:
set
in interfaceDbxSessionStore
-
clear
public void clear()
- Specified by:
clear
in interfaceDbxSessionStore
-
-