Interface TokenResolver

  • All Known Implementing Classes:
    DefaultTokenResolver

    public interface TokenResolver
    Returns the token from the provided request.
    Since:
    1.1.0
    Author:
    Sergio del Amo
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> resolveToken​(io.micronaut.http.HttpRequest<?> request)
      Resolves the token from the provided request.
    • Method Detail

      • resolveToken

        java.util.Optional<java.lang.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.