public class XsrfTokenAdditionRequestFilter extends Object implements javax.servlet.Filter
Filter
will set a XSRF token into the session IF there is a user AND they dont
already have a token.Constructor and Description |
---|
XsrfTokenAdditionRequestFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
Adds the XSRF token to the session IF there is a user AND they dont already have a token
|
void |
init(javax.servlet.FilterConfig filterConfig) |
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
servletRequest
- requestservletResponse
- responsefilterChain
- filter chainIOException
- if another filter in the filter chain throws itjavax.servlet.ServletException
- if another filter in the filter chain throws itpublic void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2002-2017 Atlassian. All Rights Reserved.