Package io.micronaut.security.session
Class SessionAuthenticationFetcher
- java.lang.Object
-
- io.micronaut.security.session.SessionAuthenticationFetcher
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,AuthenticationFetcher
@Singleton public class SessionAuthenticationFetcher extends java.lang.Object implements AuthenticationFetcher
Attempts to retrieve an instance ofAuthentication
fromSession
.- Since:
- 1.0
- Author:
- Sergio del Amo, Graeme Rocher
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Integer
ORDER
The order of the fetcher.
-
Constructor Summary
Constructors Constructor Description SessionAuthenticationFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<Authentication>
fetchAuthentication(io.micronaut.http.HttpRequest<?> request)
Attempts to read anAuthentication
from aHttpRequest
being executed.int
getOrder()
-
-
-
Method Detail
-
fetchAuthentication
public org.reactivestreams.Publisher<Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request)
Description copied from interface:AuthenticationFetcher
Attempts to read anAuthentication
from aHttpRequest
being executed.- Specified by:
fetchAuthentication
in interfaceAuthenticationFetcher
- Parameters:
request
-HttpRequest
being executed.- Returns:
Authentication
if found
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
-