Package io.micronaut.security.session
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
Modifier and TypeFieldDescriptionstatic final String
Prefix used in SessionID resolver implementation.s.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Field Details
-
PREFIX
Prefix used in SessionID resolver implementation.s.- See Also:
-
-
Method Details
-
findSessionId
- Parameters:
request
- Request- Returns:
- Session ID for the given request. Empty if no session ID was found.
-