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)
Deprecated.
Use
validate(JWT, HttpRequest) instead |
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)
Deprecated.
Use
validate(String, HttpRequest) instead. |
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.
|
@Deprecated public java.util.Optional<com.nimbusds.jwt.JWT> validate(java.lang.String token)
validate(String, HttpRequest)
instead.token
- The JWT stringpublic java.util.Optional<com.nimbusds.jwt.JWT> validate(java.lang.String token, @Nullable io.micronaut.http.HttpRequest<?> request)
token
- The JWT stringrequest
- HTTP Request@Deprecated public java.util.Optional<com.nimbusds.jwt.JWT> validate(com.nimbusds.jwt.JWT token)
validate(JWT, HttpRequest)
insteadtoken
- The JWT tokenpublic 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()