Interface ExpiringAccessToken

    • Method Detail

      • getCreateTimeMs

        long getCreateTimeMs()
        Returns:
        a creation timestamp in milliseconds since epoch
      • getTimeToLiveMs

        long getTimeToLiveMs()
        Returns:
        time to live in milliseconds, a negative value for a never expiring token
      • isExpired

        boolean isExpired()
        Returns:
        true if the token has already expired
      • isExpiring

        boolean isExpiring()
        Returns:
        true if the token is about to be expired soon
      • isValid

        boolean isValid()
        Returns:
        true if the object represents a valid token (even if it is expired)