code: public boolean isExpired(int seconds) {
          long diff = localIssuedAt.getTime() - issuedAt.getTime();
          long localExpiresAtTime = expiresAt.getTime() + diff;
          return (new Date().getTime() - seconds * 1000) >= localExpiresAtTime;
      }
docs: Indicated if token will expire after N seconds.
  @param seconds Number of seconds