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.

@FunctionalInterface public interface CsrfTokenValidator<T> extends io.micronaut.core.order.Ordered
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 Type
    Method
    Description
    boolean
    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

      boolean validateCsrfToken(@NonNull T request, @NonNull @NonNull String token)
      Given a CSRF Token, validates whether it is valid.
      Parameters:
      request - Request
      token - CSRF Token
      Returns:
      Whether the CSRF token is valid