public final class JwtValidator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JwtValidator.Builder
A builder for
JwtValidator . |
Modifier and Type | Method and Description |
---|---|
static JwtValidator.Builder |
builder() |
java.util.Optional<com.nimbusds.jwt.JWT> |
validate(com.nimbusds.jwt.JWT token,
io.micronaut.http.HttpRequest<?> request)
Validates the supplied token with any configurations and claim validators present.
|
java.util.Optional<com.nimbusds.jwt.JWT> |
validate(java.lang.String token,
io.micronaut.http.HttpRequest<?> request)
Validates the supplied token with any configurations and claim validators present.
|
public java.util.Optional<com.nimbusds.jwt.JWT> validate(java.lang.String token, @Nullable io.micronaut.http.HttpRequest<?> request)
token
- The JWT stringrequest
- HTTP Requestpublic java.util.Optional<com.nimbusds.jwt.JWT> validate(@NonNull com.nimbusds.jwt.JWT token, @Nullable io.micronaut.http.HttpRequest<?> request)
token
- The JWT tokenrequest
- The HTTP Request which contained the JWT tokenpublic static JwtValidator.Builder builder()