|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.filters.CsrfFilter
public class CsrfFilter
Support for CSRF prevention.
Field Summary | |
---|---|
static java.lang.String |
NONCE_MAP
|
static java.lang.String |
PARAMETER
|
Constructor Summary | |
---|---|
CsrfFilter()
|
Method Summary | |
---|---|
void |
addAllow(java.lang.String entry)
Adds an allowed URL, without the check |
void |
destroy()
Any cleanup for the filter. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain nextFilter)
doFilter performs the actual work of a filter, either modifying the request or the response. |
void |
init(FilterConfig config)
Initialize the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAMETER
public static final java.lang.String NONCE_MAP
Constructor Detail |
---|
public CsrfFilter()
Method Detail |
---|
@Configurable public void addAllow(java.lang.String entry)
public void init(FilterConfig config)
Filter
init
in interface Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain nextFilter) throws ServletException, java.io.IOException
Filter
doFilter
in interface Filter
request
- the servlet requestresponse
- the servlet responsenextFilter
- the next filter in the chain
ServletException
java.io.IOException
public void destroy()
destroy
in interface Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |