Interface ReactiveJsonWebTokenValidator<T,R>
- Type Parameters:
T
- TokenR
- Request
- All Superinterfaces:
io.micronaut.core.order.Ordered
,TokenValidator<R>
Reactive JSON Web Token (JWT) validator.
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
Methods inherited from interface io.micronaut.security.token.validator.TokenValidator
validateToken
-
Method Details
-
validate
@NonNull @SingleResult @NonNull org.reactivestreams.Publisher<T> validate(@NonNull @NonNull String token, @Nullable R request) Validates a Token. It should perform the following steps. - Parses the Token (if encrypted it should decrypt it). - Validates the Signature - Validates the Claims- Parameters:
token
- The JWT Tokenrequest
- An Request- Returns:
- Emits a single result with a JWT if the token is valid
-