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
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenCookieConfigurationDeprecated, for removal: This API element is subject to removal in a future version.static final IntegerDeprecated, 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
ConstructorsConstructorDescriptionTokenCookieTokenReader(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.intgetOrder()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:TokenReaderAttempts to retrieve a token in a request.- Specified by:
findTokenin 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:
getOrderin interfaceio.micronaut.core.order.Ordered
-
CookieTokenReaderinstead.