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