Class CsrfRequestDataValueProcessor
java.lang.Object
org.springframework.security.web.servlet.support.csrf.CsrfRequestDataValueProcessor
- All Implemented Interfaces:
org.springframework.web.servlet.support.RequestDataValueProcessor
public final class CsrfRequestDataValueProcessor
extends Object
implements org.springframework.web.servlet.support.RequestDataValueProcessor
Integration with Spring Web MVC that automatically adds the
CsrfToken
into
forms with hidden inputs when using Spring tag libraries.- Since:
- 3.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExtraHiddenFields
(jakarta.servlet.http.HttpServletRequest request) processAction
(jakarta.servlet.http.HttpServletRequest request, String action) processAction
(jakarta.servlet.http.HttpServletRequest request, String action, String method) processFormFieldValue
(jakarta.servlet.http.HttpServletRequest request, String name, String value, String type) processUrl
(jakarta.servlet.http.HttpServletRequest request, String url)
-
Constructor Details
-
CsrfRequestDataValueProcessor
public CsrfRequestDataValueProcessor()
-
-
Method Details
-
processAction
-
processAction
public String processAction(jakarta.servlet.http.HttpServletRequest request, String action, String method) - Specified by:
processAction
in interfaceorg.springframework.web.servlet.support.RequestDataValueProcessor
-
processFormFieldValue
public String processFormFieldValue(jakarta.servlet.http.HttpServletRequest request, String name, String value, String type) - Specified by:
processFormFieldValue
in interfaceorg.springframework.web.servlet.support.RequestDataValueProcessor
-
getExtraHiddenFields
- Specified by:
getExtraHiddenFields
in interfaceorg.springframework.web.servlet.support.RequestDataValueProcessor
-
processUrl
- Specified by:
processUrl
in interfaceorg.springframework.web.servlet.support.RequestDataValueProcessor
-