Interface TokenResolver

All Known Implementing Classes:
DefaultTokenResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@DefaultImplementation(DefaultTokenResolver.class) @FunctionalInterface public interface TokenResolver
Returns the token from the provided request.
Since:
1.1.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    resolveToken(io.micronaut.http.HttpRequest<?> request)
    Resolves the token from the provided request.
  • Method Details

    • resolveToken

      Optional<String> resolveToken(io.micronaut.http.HttpRequest<?> request)
      Resolves the token from the provided request.
      Parameters:
      request - The HTTP request.
      Returns:
      The token in the supplied request. Empty if no token was found.