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);
}
| Modifier and Type | Field and Description |
|---|---|
String |
key |
javax.servlet.http.HttpSession |
session |
| Constructor and Description |
|---|
DbxStandardSessionStore(javax.servlet.http.HttpSession session,
String key) |
public final javax.servlet.http.HttpSession session
public final String key
public DbxStandardSessionStore(javax.servlet.http.HttpSession session,
String key)
public String get()
get in interface DbxSessionStorepublic void set(String value)
set in interface DbxSessionStorepublic void clear()
clear in interface DbxSessionStoreCopyright © 2014. All rights reserved.