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)
Validates the supplied token with any configurations and claim validators present.
|
java.util.Optional<com.nimbusds.jwt.JWT> |
validate(java.lang.String token)
Validates the supplied token with any configurations and claim validators present.
|
public java.util.Optional<com.nimbusds.jwt.JWT> validate(java.lang.String token)
token
- The JWT stringpublic java.util.Optional<com.nimbusds.jwt.JWT> validate(com.nimbusds.jwt.JWT token)
token
- The JWT tokenpublic static JwtValidator.Builder builder()