Interface IAction

    • Method Detail

      • setName

        void setName​(String name)
        Sets the name of the action
        Parameters:
        name - the name of the action
      • getName

        String getName()
        Returns:
        the name of the action
      • setParameter

        void setParameter​(String name,
                          String value)
        Sets a parameter with a custom name and value
        Parameters:
        name - the name of the parameter
        value - the value of the parameter
      • getParameter

        String getParameter​(String name)
        Parameters:
        name - the name of the parameter
        Returns:
        the configured parameter based on its name
      • getParameterMap

        Map<String,​String> getParameterMap()
        Returns:
        the whole parameter map
      • execute

        void execute​(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     CsrfGuardException csrfGuardException,
                     CsrfGuard csrfGuard)
              throws CsrfGuardException
        Executes this action.
        Parameters:
        request - the HTTP request that triggered a potential CSRF attack
        response - the HTTP response object associated with the potentially malicious HTTP request
        csrfGuardException - the CSRF Guard exception object
        csrfGuard - the main CSRF Guard object, with access to inner workings of the solution
        Throws:
        CsrfGuardException - the exception type thrown in case of a potential CSRF attack