Class TokenCookieTokenReader
java.lang.Object
io.micronaut.security.token.cookie.TokenCookieTokenReader
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,TokenReader<io.micronaut.http.HttpRequest<?>>
@Deprecated(forRemoval=true)
public class TokenCookieTokenReader
extends Object
implements TokenReader<io.micronaut.http.HttpRequest<?>>
Deprecated, for removal: This API element is subject to removal in a future version.
Reads the token from the configured io.micronaut.security.token.jwt.cookie.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenCookieConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.static final Integer
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionTokenCookieTokenReader
(AccessTokenCookieConfiguration accessTokenCookieConfiguration) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfindToken
(io.micronaut.http.HttpRequest<?> request) Deprecated, for removal: This API element is subject to removal in a future version.Attempts to retrieve a token in a request.int
getOrder()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
ORDER
Deprecated, for removal: This API element is subject to removal in a future version. -
accessTokenCookieConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
TokenCookieTokenReader
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
accessTokenCookieConfiguration
- Configuration properties for JWT Cookie support
-
-
Method Details
-
findToken
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:TokenReader
Attempts to retrieve a token in a request.- Specified by:
findToken
in interfaceTokenReader<io.micronaut.http.HttpRequest<?>>
- Parameters:
request
- The request to look for the token in- Returns:
- An optional token string
-
getOrder
public int getOrder()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
CookieTokenReader
instead.