| Package | Description |
|---|---|
| com.google.crypto.tink.jwt |
| Modifier and Type | Method and Description |
|---|---|
JwtValidator.Builder |
JwtValidator.Builder.allowMissingExpiration()
When set, the validator accepts tokens that do not have an expiration set.
|
JwtValidator.Builder |
JwtValidator.Builder.expectAudience(String value)
Sets the expected audience.
|
JwtValidator.Builder |
JwtValidator.Builder.expectIssuedInThePast()
Checks that the
iat claim is in the past. |
JwtValidator.Builder |
JwtValidator.Builder.expectIssuer(String value)
Sets the expected issuer claim of the token.
|
JwtValidator.Builder |
JwtValidator.Builder.expectTypeHeader(String value)
Sets the expected type header of the token.
|
JwtValidator.Builder |
JwtValidator.Builder.ignoreAudiences()
Lets the validator ignore the
aud claim. |
JwtValidator.Builder |
JwtValidator.Builder.ignoreIssuer()
Lets the validator ignore the
iss claim. |
JwtValidator.Builder |
JwtValidator.Builder.ignoreTypeHeader()
Lets the validator ignore the
typ header. |
static JwtValidator.Builder |
JwtValidator.newBuilder()
Returns a new JwtValidator.Builder.
|
JwtValidator.Builder |
JwtValidator.Builder.setClock(Clock clock)
Sets the clock used to verify timestamp claims.
|
JwtValidator.Builder |
JwtValidator.Builder.setClockSkew(Duration clockSkew)
Sets the clock skew to tolerate when verifying timestamp claims, to deal with small clock
differences among different machines.
|