Package io.micronaut.security.session
Class SessionAuthenticationFetcher
java.lang.Object
io.micronaut.security.session.SessionAuthenticationFetcher
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,io.micronaut.security.filters.AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
@Requires(classes=io.micronaut.http.HttpRequest.class)
@Singleton
public class SessionAuthenticationFetcher
extends Object
implements io.micronaut.security.filters.AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
Attempts to retrieve an instance of
Authentication from Session.- Since:
- 1.0
-
Field Summary
FieldsFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.security.authentication.Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request) intgetOrder()
-
Field Details
-
ORDER
The order of the fetcher.
-
-
Constructor Details
-
SessionAuthenticationFetcher
public SessionAuthenticationFetcher()
-
-
Method Details
-
fetchAuthentication
public org.reactivestreams.Publisher<io.micronaut.security.authentication.Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request) - Specified by:
fetchAuthenticationin interfaceio.micronaut.security.filters.AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-