public class AESCookieBackend extends CookieBackendSupport
Parameters :
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_COMPRESS |
static String |
PARAM_IV |
static String |
PARAM_KEY |
static String |
PARAM_RESTRICT_IP |
static String |
PARAM_SESSION_MAX_TIME |
static String |
PARAM_SIGN_SECRET |
cookieName, domain, maxAge, PARAM_COOKIEDOMAIN, PARAM_COOKIEMAXAGE, PARAM_COOKIENAME, PARAM_COOKIEPATH, path
TYPE_BACKEND, TYPE_REQUEST_PROCESSOR
Constructor and Description |
---|
AESCookieBackend() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the backend.
|
boolean |
getCompress() |
String |
getId()
Get backend id.
|
boolean |
getRestrictIp() |
Integer |
getSessionMaxTime() |
String |
getSignSecret() |
void |
init(Map<String,String> config)
Loads key and iv for encryption and performs normal init.
|
ISessionData |
restore(javax.servlet.http.HttpServletRequest request)
Restores a session from the backend.
|
void |
save(ISessionData session,
List<String> dirtyAttributes,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Saves a session to the backend.
|
getCookieData, getCookieData, getFullRemoteAddr, isBufferingRequired, setCookieData, setCookieData, setCookieName
public static final String PARAM_COMPRESS
public static final String PARAM_IV
public static final String PARAM_KEY
public static final String PARAM_RESTRICT_IP
public static final String PARAM_SESSION_MAX_TIME
public static final String PARAM_SIGN_SECRET
public void destroy()
IPlugin
destroy
in interface IPlugin
destroy
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#destroy()
public boolean getCompress()
public String getId()
IPlugin
getId
in interface IPlugin
getId
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#getId()
public boolean getRestrictIp()
public Integer getSessionMaxTime()
public String getSignSecret()
public void init(Map<String,String> config) throws Exception
init
in interface IPlugin
init
in class CookieBackendSupport
Exception
com.capgemini.stateless.backend.plaincookie.ISessionBackend#init(java.util.Map)
public ISessionData restore(javax.servlet.http.HttpServletRequest request)
ISessionBackend
restore
in interface ISessionBackend
restore
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#restore(javax.servlet.http.HttpServletRequest)
public void save(ISessionData session, List<String> dirtyAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
ISessionBackend
save
in interface ISessionBackend
save
in class CookieBackendSupport
session
- Current session.dirtyAttributes
- list of attributes that were added/changed/removed during the
current request.request
- Current request.response
- Current response.IOException
CookieBackendSupport.save(net.sourceforge.statelessfilter.backend.ISessionData,
java.util.List, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
Copyright © 2009–2013. All rights reserved.