public class

XsrfTokenAdditionRequestFilter

extends Object
implements Filter
java.lang.Object
   ↳ com.atlassian.jira.security.xsrf.XsrfTokenAdditionRequestFilter

Class Overview

This request javax.servlet.Filter will set a XSRF token into the session IF there is a user AND they dont already have a token.

Summary

Public Constructors
XsrfTokenAdditionRequestFilter()
Public Methods
void destroy()
void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
Adds the XSRF token to the session IF there is a user AND they dont already have a token
void init(FilterConfig filterConfig)
Protected Methods
ApplicationProperties getJiraApplicationProperties()
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.Filter

Public Constructors

public XsrfTokenAdditionRequestFilter ()

Public Methods

public void destroy ()

public void doFilter (ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)

Adds the XSRF token to the session IF there is a user AND they dont already have a token

Parameters
servletRequest request
servletResponse response
filterChain filter chain
Throws
IOException if another filter in the filter chain throws it
ServletException if another filter in the filter chain throws it

public void init (FilterConfig filterConfig)

Throws
ServletException

Protected Methods

protected ApplicationProperties getJiraApplicationProperties ()