Class JwtClaims

java.lang.Object
com.revetsec.jose.JwtClaims

@Immutable public final class JwtClaims extends Object
The claims of a validated JWT (RFC 7519 section 4). Only a validator creates them, after the token's signature and claims passed.

The registered claims were checked for their types before this object existed: iss, sub and jti are strings, aud is a string or a non-empty array of strings, and exp, nbf and iat are NumericDates. So every getter is total: it returns the claim or reports it absent, and never throws. getClaim(String) and toJsonObject() give every other claim as JSON.

Claims can carry personal data, so toString() shows none of them. Instances compare by reference, never by content.

Since:
1.0.0
Author:
Mark Allen