Interface CsrfTokenValidator<T>
- Type Parameters:
T
- request
- All Superinterfaces:
io.micronaut.core.order.Ordered
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
CSRF Token Validation.
- Since:
- 4.11.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validateCsrfToken
(T request, @NonNull String token) Given a CSRF Token, validates whether it is valid.Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
validateCsrfToken
Given a CSRF Token, validates whether it is valid.- Parameters:
request
- Requesttoken
- CSRF Token- Returns:
- Whether the CSRF token is valid
-