@Immutable public final class JwtValidator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JwtValidator.Builder
Builder for JwtValidator
|
| Modifier and Type | Method and Description |
|---|---|
static JwtValidator.Builder |
newBuilder()
Returns a new JwtValidator.Builder.
|
String |
toString()
Returns a brief description of a JwtValidator object.
|
public static JwtValidator.Builder newBuilder()
By default, the JwtValidator requires that a token has a valid expiration claim, no issuer and no audience claim. This can be changed using the expect...(), ignore...() and allowMissingExpiration() methods.
If present, the JwtValidator also validates the not-before claim. The validation time can be changed using the setClock() method.