Interface CsrfTokenRequestAttributeHandler
- All Known Implementing Classes:
CsrfTokenRequestProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback interface that is used to make the
CsrfToken
created by the
CsrfTokenRepository
available as a request attribute. Implementations of this
interface may choose to perform additional tasks or customize how the token is made
available to the application through request attributes.- Since:
- 5.8
- See Also:
-
Method Summary
-
Method Details
-
handle
void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Supplier<CsrfToken> csrfToken) Handles a request using aCsrfToken
.- Parameters:
request
- theHttpServletRequest
being handledresponse
- theHttpServletResponse
being handledcsrfToken
- theCsrfToken
created by theCsrfTokenRepository
-