Interface XsrfTokenValidationManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isRequestExempt​(String actionName, javax.servlet.http.HttpServletRequest request)
      Check if XSRF token protection checks should be exempt for the given action and request.
      boolean isRequestValid​(Class<?> actionClass, Method actionMethod, Map<String,​String> actionParams, javax.servlet.http.HttpServletRequest request)
      Check if this request passes XSRF token checks.
    • Method Detail

      • isRequestExempt

        boolean isRequestExempt​(String actionName,
                                javax.servlet.http.HttpServletRequest request)
        Check if XSRF token protection checks should be exempt for the given action and request.
        Parameters:
        actionName - - the action name
        request - - the current HttpServletRequest
        Returns:
        true if the request should be exempt from xsrf check, false otherwise.
      • isRequestValid

        boolean isRequestValid​(Class<?> actionClass,
                               Method actionMethod,
                               Map<String,​String> actionParams,
                               javax.servlet.http.HttpServletRequest request)
        Check if this request passes XSRF token checks.
        Parameters:
        actionClass - - the current action class
        actionMethod - - the action method that is executed
        actionParams - - the action parameters
        request - - the current HttpServletRequest
        Returns:
        true if the request passes XSRF token validations, false otherwise.