Interface Csrf


  • public interface Csrf
    Cross Site Request Forgery (CSRF) interface with access to the CSRF header name and the CSRF token value. Implementations of this interface are injectable and accessible from EL via the MvcContext class as mvc.csrf.
    Since:
    1.0
    Author:
    Santiago Pericas-Geertsen, Christian Kaltepoth
    See Also:
    CsrfProtected
    • Method Detail

      • getName

        String getName()
        Returns the name of the CSRF form field or HTTP request header. This name is typically a constant.
        Returns:
        name of CSRF header.
      • getToken

        String getToken()
        Returns the value of the CSRF token.
        Returns:
        value of CSRF token.