Interface XsrfTokenValidationManager
-
- All Known Implementing Classes:
DefaultXsrfTokenValidationManager
public interface XsrfTokenValidationManagerDefines global XSRF token validation rules.- See Also:
DefaultXsrfTokenValidationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRequestExempt(MappedAction mappedAction, javax.servlet.http.HttpServletRequest request)Check if XSRF token protection checks should be exempt for the given action and request.booleanisRequestValid(MappedAction mappedAction, javax.servlet.http.HttpServletRequest request)Check if this request passes XSRF token checks.
-
-
-
Method Detail
-
isRequestExempt
boolean isRequestExempt(MappedAction mappedAction, javax.servlet.http.HttpServletRequest request)
Check if XSRF token protection checks should be exempt for the given action and request.- Parameters:
mappedAction- the mapped Struts action if one exists, else nullrequest- the currentHttpServletRequest- Returns:
- true if the request should be exempt from xsrf check, false otherwise.
-
isRequestValid
boolean isRequestValid(MappedAction mappedAction, javax.servlet.http.HttpServletRequest request)
Check if this request passes XSRF token checks.- Parameters:
mappedAction- the mapped Struts action if one exists, else nullrequest- the currentHttpServletRequest- Returns:
- true if the request passes XSRF token validations, false otherwise.
-
-