@Requires(property="micronaut.security.token.jwt.bearer.enabled", notEquals="false") @Singleton public class BearerTokenReader extends HttpHeaderTokenReader implements TokenReader
HttpHeaders.AUTHORIZATION
header. e.g. Bearer XXXXX.Modifier and Type | Field and Description |
---|---|
protected BearerTokenConfiguration |
bearerTokenConfiguration |
static java.lang.Integer |
ORDER |
Constructor and Description |
---|
BearerTokenReader(BearerTokenConfiguration bearerTokenConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getHeaderName() |
int |
getOrder() |
protected java.lang.String |
getPrefix() |
extractTokenFromAuthorization, findToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findToken
public static final java.lang.Integer ORDER
protected final BearerTokenConfiguration bearerTokenConfiguration
public BearerTokenReader(BearerTokenConfiguration bearerTokenConfiguration)
bearerTokenConfiguration
- Instance of BearerTokenConfiguration
protected java.lang.String getHeaderName()
getHeaderName
in class HttpHeaderTokenReader
protected java.lang.String getPrefix()
getPrefix
in class HttpHeaderTokenReader
public int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered