public final class CsrfRequestDataValueProcessor extends Object implements RequestDataValueProcessor
CsrfToken
into forms with hidden inputs when using Spring tag libraries.Constructor and Description |
---|
CsrfRequestDataValueProcessor() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExtraHiddenFields(javax.servlet.http.HttpServletRequest request) |
String |
processAction(javax.servlet.http.HttpServletRequest request,
String action) |
String |
processAction(javax.servlet.http.HttpServletRequest request,
String action,
String method) |
String |
processFormFieldValue(javax.servlet.http.HttpServletRequest request,
String name,
String value,
String type) |
String |
processUrl(javax.servlet.http.HttpServletRequest request,
String url) |
public String processAction(javax.servlet.http.HttpServletRequest request, String action)
processAction
in interface RequestDataValueProcessor
public String processAction(javax.servlet.http.HttpServletRequest request, String action, String method)
public String processFormFieldValue(javax.servlet.http.HttpServletRequest request, String name, String value, String type)
processFormFieldValue
in interface RequestDataValueProcessor
public Map<String,String> getExtraHiddenFields(javax.servlet.http.HttpServletRequest request)
getExtraHiddenFields
in interface RequestDataValueProcessor
public String processUrl(javax.servlet.http.HttpServletRequest request, String url)
processUrl
in interface RequestDataValueProcessor