Interface CsrfToken
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultCsrfToken
Provides the information about an expected CSRF token.
- Since:
- 3.2
- See Also:
-
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.
-
Method Details
-
getHeaderName
String getHeaderName()Gets the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter. Cannot be null.- Returns:
- the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter
-
getParameterName
String getParameterName()Gets the HTTP parameter name that should contain the token. Cannot be null.- Returns:
- the HTTP parameter name that should contain the token.
-
getToken
String getToken()Gets the token value. Cannot be null.- Returns:
- the token value
-