@Requires(property="micronaut.security.token.basic-auth.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)
Deprecated.
|
BasicAuthTokenValidator(Authenticator authenticator,
TokenConfiguration tokenConfiguration) |
| 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
@Deprecated public BasicAuthTokenValidator(Authenticator authenticator)
BasicAuthTokenValidator(Authenticator, TokenConfiguration)authenticator - The Authenticator@Inject public BasicAuthTokenValidator(Authenticator authenticator, TokenConfiguration tokenConfiguration)
authenticator - The AuthenticatortokenConfiguration - The Token configuration.public Publisher<Authentication> validateToken(String encodedToken)
TokenValidatorvalidateToken in interface TokenValidatorencodedToken - The token stringOptional.empty() if the validation fails