Interface CsrfTokenRepository<T>
- Type Parameters:
T
- Request
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Implementing Classes:
CookieCsrfTokenRepository
,SessionCsrfTokenRepository
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Indexed(CsrfTokenRepository.class)
@FunctionalInterface
public interface CsrfTokenRepository<T>
extends io.micronaut.core.order.Ordered
Repository API for CSRF Tokens.
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
findCsrfToken
- Parameters:
request
- Request- Returns:
- A CSRF token or an empty optional.
-