@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 Integer |
ORDER |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
BearerTokenReader(BearerTokenConfiguration bearerTokenConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected String |
getHeaderName() |
int |
getOrder() |
protected String |
getPrefix() |
extractTokenFromAuthorization, findToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findToken
public static final Integer ORDER
protected final BearerTokenConfiguration bearerTokenConfiguration
public BearerTokenReader(BearerTokenConfiguration bearerTokenConfiguration)
bearerTokenConfiguration
- Instance of BearerTokenConfiguration
protected String getHeaderName()
getHeaderName
in class HttpHeaderTokenReader
protected String getPrefix()
getPrefix
in class HttpHeaderTokenReader