Interface AuthenticationMapper

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
AbstractAuthenticationMapper

public interface AuthenticationMapper extends io.micronaut.core.order.Ordered
Maps a token value to an Authentication.
Since:
5.3.0
Author:
Sergio del Amo
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Authentication
    of(@NonNull String token)
    Attempts to create an Authentication from the token.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • of

      @Nullable Authentication of(@NonNull String token)
      Attempts to create an Authentication from the token.
      Parameters:
      token - The token to map
      Returns:
      The mapped authentication, or null if the token cannot be mapped