/** * Returns the Expiration time {@code (exp)} claim which identifies the expiration time * on or after which the JWT MUST NOT be accepted for processing. * * @return the Expiration time on or after which the JWT MUST NOT be accepted for processing */ default Instant getExpiresAt() { return this.getClaimAsInstant(JwtClaimNames.EXP); }
/** * Returns the JWT ID {@code (jti)} claim which provides a unique identifier for the JWT. * * @return the JWT ID claim which provides a unique identifier for the JWT */ default String getId() { return this.getClaimAsString(JwtClaimNames.JTI); } }
/** * Returns the Audience {@code (aud)} claim which identifies the recipient(s) * that the JWT is intended for. * * @return the Audience(s) that this JWT intended for */ default List<String> getAudience() { return this.getClaimAsStringList(JwtClaimNames.AUD); }
/** * Returns the Issuer {@code (iss)} claim which identifies the principal that issued the JWT. * * @return the Issuer identifier */ default URL getIssuer() { return this.getClaimAsURL(JwtClaimNames.ISS); }
/** * Returns the Issuer {@code (iss)} claim which identifies the principal that issued the JWT. * * @return the Issuer identifier */ default URL getIssuer() { return this.getClaimAsURL(JwtClaimNames.ISS); }
/** * Returns the Not Before {@code (nbf)} claim which identifies the time * before which the JWT MUST NOT be accepted for processing. * * @return the Not Before time before which the JWT MUST NOT be accepted for processing */ default Instant getNotBefore() { return this.getClaimAsInstant(JwtClaimNames.NBF); }
/** * Returns the Subject {@code (sub)} claim which identifies the principal * that is the subject of the JWT. * * @return the Subject identifier */ default String getSubject() { return this.getClaimAsString(JwtClaimNames.SUB); }
/** * Returns the Audience {@code (aud)} claim which identifies the recipient(s) * that the JWT is intended for. * * @return the Audience(s) that this JWT intended for */ default List<String> getAudience() { return this.getClaimAsStringList(JwtClaimNames.AUD); }
/** * Returns the Issued at {@code (iat)} claim which identifies the time at which the JWT was issued. * * @return the Issued at claim which identifies the time at which the JWT was issued */ default Instant getIssuedAt() { return this.getClaimAsInstant(JwtClaimNames.IAT); }
/** * Returns the JWT ID {@code (jti)} claim which provides a unique identifier for the JWT. * * @return the JWT ID claim which provides a unique identifier for the JWT */ default String getId() { return this.getClaimAsString(JwtClaimNames.JTI); } }
/** * Returns the Expiration time {@code (exp)} claim which identifies the expiration time * on or after which the JWT MUST NOT be accepted for processing. * * @return the Expiration time on or after which the JWT MUST NOT be accepted for processing */ default Instant getExpiresAt() { return this.getClaimAsInstant(JwtClaimNames.EXP); }
/** * Returns the Subject {@code (sub)} claim which identifies the principal * that is the subject of the JWT. * * @return the Subject identifier */ default String getSubject() { return this.getClaimAsString(JwtClaimNames.SUB); }
/** * Returns the Issued at {@code (iat)} claim which identifies the time at which the JWT was issued. * * @return the Issued at claim which identifies the time at which the JWT was issued */ default Instant getIssuedAt() { return this.getClaimAsInstant(JwtClaimNames.IAT); }
/** * Returns the Not Before {@code (nbf)} claim which identifies the time * before which the JWT MUST NOT be accepted for processing. * * @return the Not Before time before which the JWT MUST NOT be accepted for processing */ default Instant getNotBefore() { return this.getClaimAsInstant(JwtClaimNames.NBF); }