/** * Gets the not-before ({@code nbf}) claim. * * @return The not-before claim, {@code null} if not specified. */ public Date getNotBeforeTime() { try { return getDateClaim(NOT_BEFORE_CLAIM); } catch (ParseException e) { return null; } }
/** * Gets the expiration time ({@code exp}) claim. * * @return The expiration time, {@code null} if not specified. */ public Date getExpirationTime() { try { return getDateClaim(EXPIRATION_TIME_CLAIM); } catch (ParseException e) { return null; } }
/** * Gets the issued-at ({@code iat}) claim. * * @return The issued-at claim, {@code null} if not specified. */ public Date getIssueTime() { try { return getDateClaim(ISSUED_AT_CLAIM); } catch (ParseException e) { return null; } }
try { expMS = claimsSet.getDateClaim("exp");