Class DefaultCsrfToken
java.lang.Object
org.springframework.security.web.csrf.DefaultCsrfToken
- All Implemented Interfaces:
Serializable, CsrfToken
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCsrfToken(String headerName, String parameterName, String token) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter.Gets the HTTP parameter name that should contain the token.getToken()Gets the token value.
-
Constructor Details
-
DefaultCsrfToken
-
-
Method Details
-
getHeaderName
Description copied from interface:CsrfTokenGets the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter. Cannot be null.- Specified by:
getHeaderNamein interfaceCsrfToken- Returns:
- the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter
-
getParameterName
Description copied from interface:CsrfTokenGets the HTTP parameter name that should contain the token. Cannot be null.- Specified by:
getParameterNamein interfaceCsrfToken- Returns:
- the HTTP parameter name that should contain the token.
-
getToken
-