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 DbxSessionStore
public void set(String value)
set
in interface DbxSessionStore
public void clear()
clear
in interface DbxSessionStore
Copyright © 2014. All rights reserved.