@Singleton public class JwtCookieTokenReader extends java.lang.Object implements TokenReader
| Modifier and Type | Field and Description |
|---|---|
protected JwtCookieConfiguration |
jwtCookieConfiguration |
static java.lang.Integer |
ORDER |
| Constructor and Description |
|---|
JwtCookieTokenReader(JwtCookieConfiguration jwtCookieConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
findToken(io.micronaut.http.HttpRequest<?> request)
Attempts to retrieve a token in a request.
|
int |
getOrder() |
public static final java.lang.Integer ORDER
protected final JwtCookieConfiguration jwtCookieConfiguration
public JwtCookieTokenReader(JwtCookieConfiguration jwtCookieConfiguration)
jwtCookieConfiguration - Configuration properties for JWT Cookie supportpublic java.util.Optional<java.lang.String> findToken(io.micronaut.http.HttpRequest<?> request)
TokenReaderfindToken in interface TokenReaderrequest - The request to look for the token inpublic int getOrder()
getOrder in interface io.micronaut.core.order.Ordered