Class DefaultTokenResolver

  • All Implemented Interfaces:
    TokenResolver

    @Singleton
    public class DefaultTokenResolver
    extends java.lang.Object
    implements TokenResolver
    Default implementation of TokenResolver.
    Since:
    1.1.0
    Author:
    Sergio del Amo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> resolveToken​(io.micronaut.http.HttpRequest<?> request)
      Returns the first token found by the supplied token readers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveToken

        public java.util.Optional<java.lang.String> resolveToken​(io.micronaut.http.HttpRequest<?> request)
        Returns the first token found by the supplied token readers.
        Specified by:
        resolveToken in interface TokenResolver
        Parameters:
        request - The current HTTP request.
        Returns:
        the first found token in the supplied request.