Interface CsrfTokenGenerator<T>
- Type Parameters:
T
- Request
- All Known Subinterfaces:
CsrfHmacTokenGenerator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@DefaultImplementation(io.micronaut.security.csrf.generator.DefaultCsrfTokenGenerator.class)
@FunctionalInterface
public interface CsrfTokenGenerator<T>
CSRF token Generation.
- Since:
- 4.11.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
generateCsrfToken
(T request) Generates a CSRF Token.
-
Method Details
-
generateCsrfToken
Generates a CSRF Token.- Parameters:
request
- Request- Returns:
- A CSRF Token.
-