@Requires(property="micronaut.security.token.basic-auth.enabled", notEquals="false") @Singleton public class BasicAuthTokenReader extends HttpHeaderTokenReader implements TokenReader
Modifier and Type | Field and Description |
---|---|
protected BasicAuthTokenReaderConfiguration |
bearerTokenReaderConfiguration |
static Integer |
ORDER
The order of the TokenReader.
|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
BasicAuthTokenReader(BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration) |
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 BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration
public BasicAuthTokenReader(BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration)
bearerTokenReaderConfiguration
- Instance of BasicAuthTokenReaderConfiguration
public int getOrder()
protected String getHeaderName()
getHeaderName
in class HttpHeaderTokenReader
protected String getPrefix()
getPrefix
in class HttpHeaderTokenReader