Class CsrfInputTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.springframework.security.taglibs.csrf.CsrfInputTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CsrfInputTag extends javax.servlet.jsp.tagext.TagSupport
A JSP tag that prints out a hidden form field for the CSRF token. See the JSP Tab Library documentation for more information.- Since:
- 3.2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CsrfInputTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
java.lang.String
handleToken(CsrfToken token)
-
-
-
Method Detail
-
handleToken
public java.lang.String handleToken(CsrfToken token)
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
-