@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 java.lang.Integer |
ORDER
The order of the TokenReader.
|
Constructor and Description |
---|
BasicAuthTokenReader(BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration) |
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 BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration
public BasicAuthTokenReader(BasicAuthTokenReaderConfiguration bearerTokenReaderConfiguration)
bearerTokenReaderConfiguration
- Instance of BasicAuthTokenReaderConfiguration
public int getOrder()
getOrder
in interface io.micronaut.core.order.Ordered
protected java.lang.String getHeaderName()
getHeaderName
in class HttpHeaderTokenReader
protected java.lang.String getPrefix()
getPrefix
in class HttpHeaderTokenReader