public final class DbxStandardSessionStore extends Object implements DbxSessionStore
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 and Description |
---|
DbxStandardSessionStore(javax.servlet.http.HttpSession session,
String key) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
String |
get() |
String |
getKey() |
javax.servlet.http.HttpSession |
getSession() |
void |
set(String value) |
public DbxStandardSessionStore(javax.servlet.http.HttpSession session, String key)
public javax.servlet.http.HttpSession getSession()
public String getKey()
public String get()
get
in interface DbxSessionStore
public void set(String value)
set
in interface DbxSessionStore
public void clear()
clear
in interface DbxSessionStore