@Requires(property="micronaut.security.token.basicAuth.enabled", notEquals="false") @Singleton public class BasicAuthTokenValidator extends Object implements TokenValidator
| Modifier and Type | Field and Description | 
|---|---|
protected Authenticator | 
authenticator  | 
static Integer | 
ORDER
The order of the TokenValidator. 
 | 
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description | 
|---|
BasicAuthTokenValidator(Authenticator authenticator)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getOrder()  | 
Publisher<Authentication> | 
validateToken(String encodedToken)
Validates the provided token and returns the authentication state. 
 | 
public static final Integer ORDER
protected final Authenticator authenticator
public BasicAuthTokenValidator(Authenticator authenticator)
authenticator - The Authenticatorpublic Publisher<Authentication> validateToken(String encodedToken)
TokenValidatorvalidateToken in interface TokenValidatorencodedToken - The token stringOptional.empty() if the validation fails