Interface TokenWriter

  • All Known Implementing Classes:
    HttpHeaderTokenWriter

    public interface TokenWriter
    Responsible for writing the token in the request.
    Since:
    1.0
    Author:
    Sergio del Amo
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void writeToken​(io.micronaut.http.MutableHttpRequest<?> request, java.lang.String token)
      Writes the token to the request.
    • Method Detail

      • writeToken

        void writeToken​(io.micronaut.http.MutableHttpRequest<?> request,
                        java.lang.String token)
        Writes the token to the request.
        Parameters:
        request - The MutableHttpRequest instance
        token - A token ( e.g. JWT token, basic auth token...)