public class YfyStandardSessionStore extends Object implements YfySessionStore
YfySessionStore implementation that stores the value using the standard
HttpSession interface from the Java Servlet API.
Example:
YfyWebAuth getYfyWebAuth(HttpServletRequest request)
{
HttpSession session = request.getSession(true);
String key = "fangcloud-auth-csrf-token";
YfySessionStore csrfStore = new YfyStandardSessionStore(session, key);
return new YfyWebAuth(..., csrfStore);
}
| Constructor and Description |
|---|
YfyStandardSessionStore(javax.servlet.http.HttpSession session,
String key) |
public YfyStandardSessionStore(javax.servlet.http.HttpSession session,
String key)
public javax.servlet.http.HttpSession getSession()
public String getKey()
public String get()
get in interface YfySessionStorepublic void set(String value)
set in interface YfySessionStorepublic void clear()
clear in interface YfySessionStoreCopyright © 2017 YiFangYun. All rights reserved.