Interface XsrfTokenValidationManager
- All Known Implementing Classes:
DefaultXsrfTokenValidationManager
public interface XsrfTokenValidationManager
Defines global XSRF token validation rules.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisRequestExempt(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 Details
-
isRequestExempt
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
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.
-