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.
Use CookieTokenReader instead.
Reads the token from the configured io.micronaut.security.token.jwt.cookie.
Since:
1.0
Author:
Sergio del Amo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    findToken(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
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ORDER

      public static final Integer ORDER
      Deprecated, for removal: This API element is subject to removal in a future version.
    • accessTokenCookieConfiguration

      protected final AccessTokenCookieConfiguration accessTokenCookieConfiguration
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • TokenCookieTokenReader

      public TokenCookieTokenReader(AccessTokenCookieConfiguration accessTokenCookieConfiguration)
      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

      public Optional<String> findToken(io.micronaut.http.HttpRequest<?> request)
      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 interface TokenReader<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 interface io.micronaut.core.order.Ordered