Interface SessionIdResolver<T>

Type Parameters:
T - Request
All Superinterfaces:
io.micronaut.core.order.Ordered

@Indexed(SessionIdResolver.class) public interface SessionIdResolver<T> extends io.micronaut.core.order.Ordered
API to resolve a session id for a given request. A session ID could be an HTTP Session ID but also a JSON Web Token Identifier in a token based state-less authentication.
Since:
4.11.0
Author:
Sergio del Amo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Prefix used in SessionID resolver implementation.s.

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

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<String>
    findSessionId(T request)
     

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

    getOrder
  • Field Details

  • Method Details

    • findSessionId

      @NonNull @NonNull Optional<String> findSessionId(@NonNull T request)
      Parameters:
      request - Request
      Returns:
      Session ID for the given request. Empty if no session ID was found.