Package com.dropbox.core
Class DbxStandardSessionStore
java.lang.Object
com.dropbox.core.DbxStandardSessionStore
- All Implemented Interfaces:
DbxSessionStore
A
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 Summary
ConstructorsConstructorDescriptionDbxStandardSessionStore(jakarta.servlet.http.HttpSession session, String key) -
Method Summary
-
Constructor Details
-
DbxStandardSessionStore
-
-
Method Details
-
getSession
public jakarta.servlet.http.HttpSession getSession() -
getKey
-
get
- Specified by:
getin interfaceDbxSessionStore
-
set
- Specified by:
setin interfaceDbxSessionStore
-
clear
public void clear()- Specified by:
clearin interfaceDbxSessionStore
-