Package io.micronaut.security.session
Class SessionAuthenticationFetcher
java.lang.Object
io.micronaut.security.session.SessionAuthenticationFetcher
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
@Requires(classes=io.micronaut.http.HttpRequest.class)
@Singleton
public class SessionAuthenticationFetcher
extends Object
implements AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
Attempts to retrieve an instance of
Authentication
from Session
.- Since:
- 1.0
- Author:
- Sergio del Amo, Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<Authentication>
fetchAuthentication
(io.micronaut.http.HttpRequest<?> request) Attempts to read anAuthentication
from an HTTP Request being executed.int
getOrder()
-
Field Details
-
ORDER
The order of the fetcher.
-
-
Constructor Details
-
SessionAuthenticationFetcher
public SessionAuthenticationFetcher()
-
-
Method Details
-
fetchAuthentication
public org.reactivestreams.Publisher<Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request) Description copied from interface:AuthenticationFetcher
Attempts to read anAuthentication
from an HTTP Request being executed.- Specified by:
fetchAuthentication
in interfaceAuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
- Parameters:
request
- an HTTP Request being executed.- Returns:
Authentication
if found
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-