Interface TokenValidator
-
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Implementing Classes:
BasicAuthTokenValidator
,JwtTokenValidator
public interface TokenValidator extends io.micronaut.core.order.Ordered
Responsible for token validation and claims retrieval.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<Authentication>
validateToken(java.lang.String token)
Validates the provided token and returns the authentication state.
-
-
-
Method Detail
-
validateToken
org.reactivestreams.Publisher<Authentication> validateToken(java.lang.String token)
Validates the provided token and returns the authentication state.- Parameters:
token
- The token string- Returns:
- The authentication or
Optional.empty()
if the validation fails
-
-