public interface TokenValidator
extends io.micronaut.core.order.Ordered
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Authentication> |
validateToken(java.lang.String token)
Deprecated.
|
default org.reactivestreams.Publisher<Authentication> |
validateToken(java.lang.String token,
io.micronaut.http.HttpRequest<?> request)
Validates the provided token and returns the authentication state.
|
@Deprecated org.reactivestreams.Publisher<Authentication> validateToken(java.lang.String token)
token
- The token stringdefault org.reactivestreams.Publisher<Authentication> validateToken(java.lang.String token, @Nullable io.micronaut.http.HttpRequest<?> request)
token
- The token stringrequest
- The current request (or null)