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 Type
    Method
    Description
    @NonNull String
    Generates a CSRF Token.
  • Method Details

    • generateCsrfToken

      @NonNull @NonNull String generateCsrfToken(@NonNull T request)
      Generates a CSRF Token.
      Parameters:
      request - Request
      Returns:
      A CSRF Token.