Interface JsonWebTokenValidator<T,R>

Type Parameters:
T - Token
R - Request
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 JsonWebTokenValidator<T,R>
JSON Web Token (JWT) validator.
Since:
4.8.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<T>
    validate(@NonNull String token, R request)
    Validates a Token.
  • Method Details

    • validate

      @NonNull @NonNull Optional<T> validate(@NonNull @NonNull String token, @Nullable R request)
      Validates a Token. It should perform the following steps. - Parses the Token (if encrypted it should decrypt it). - Validates the Signature - Validates the Claims
      Parameters:
      token - The JWT Token
      request - An Request
      Returns:
      A JWT if the token is valid