Interface AuthToken

  • All Known Implementing Classes:

    public interface AuthToken
    Represents an Authorization Bearer token that can be held on the context.

    Typically the token will be valid for a period and then expire.

    • Method Detail

      • token

        String token()
        Return the Authorization bearer token.
      • isExpired

        boolean isExpired()
        Return true if the token has expired or is no longer valid.
      • of

        static AuthToken of​(String token,
                            Instant validUntil)
        Create an return a AuthToken with the given token and time it is valid until.