| Modifier and Type | Field and Description |
|---|---|
| public static final JwtClaims | NONE
Singleton instance representing no claims |
| Modifier and Type | Method and Description |
|---|---|
| public default List | Returns: non-null set representing the values ofaud claimThe recipients that the JWT is intended for. |
| public default Optional | Returns: value ofexp claimExpiration time on or after which the JWT MUST NOT be accepted for processing. |
| public default Optional | |
| public default Optional | |
| public default Optional | |
| public default Optional | |
| public default Optional | |
| public default boolean | isBeforeValidity(Clock
Clock representing reference time of checking clock, boolean indication, whether the claim is required, i. e. whether token without nbf is considered before validity required, Duration allowed clock skew to account for drift between provider and us skew)Check if JWT is before its defined validity |
| public default boolean | Returns: true when current time is past expiration time, or exp claim is not present and required is trueClock representing reference time of checking clock, boolean indication whether the claim is required, i. e. whether token with claim is considered expired required, Duration allowed clock skew to account for drift between provider and us skew)Check if JWT is expired |
| public default boolean | Returns: true if exp token is present and within limits and nbf is within limits when presentCheck JWT validity against current time with 1MIN clock skew. |
| NONE | back to summary |
|---|---|
| public static final JwtClaims NONE Singleton instance representing no claims | |
| getAudience | back to summary |
|---|---|
| public default List The recipients that the JWT is intended for. To ease work with the field, audience is always represented as list, also in special cases -- it is singleton list when it was a string in the token, and empty set if it was not present. | |
| getExpirationTime | back to summary |
|---|---|
| public default Optional Expiration time on or after which the JWT MUST NOT be accepted for processing. | |
| getIssuedAt | back to summary |
|---|---|
| public default Optional The time at which the JWT was issued. | |
| getIssuer | back to summary |
|---|---|
| public default Optional The principal that issued the JWT | |
| getJwtId | back to summary |
|---|---|
| public default Optional Unique identifier for the JWT | |
| getNotBeforeTime | back to summary |
|---|---|
| public default Optional The time before which the JWT MUST NOT be accepted for processing. | |
| getSubject | back to summary |
|---|---|
| public default Optional The principal that is the subject of the JWT. The claims in a JWT are normally statements about the subject. | |
| isBeforeValidity | back to summary |
|---|---|
| public default boolean isBeforeValidity(Clock clock, boolean required, Duration skew) Check if JWT is before its defined validity | |
| isExpired | back to summary |
|---|---|
| public default boolean isExpired(Clock clock, boolean required, Duration skew) Check if JWT is expired
| |
| isValid | back to summary |
|---|---|
| public default boolean isValid() Check JWT validity against current time with 1MIN clock skew.
| |