Class AuthToken.Basic

java.lang.Object
io.avaje.http.client.AuthToken.Basic
All Implemented Interfaces:
AuthToken
Enclosing interface:
AuthToken

public static class AuthToken.Basic extends Object implements AuthToken
Standard AuthToken implementation.
  • Constructor Details

    • Basic

      public Basic(String token, Instant validUntil)
      Create with token and valid until time.
  • Method Details

    • token

      public String token()
      Description copied from interface: AuthToken
      Return the Authorization bearer token.
      Specified by:
      token in interface AuthToken
    • isExpired

      public boolean isExpired()
      Description copied from interface: AuthToken
      Return true if the token has expired or is no longer valid.
      Specified by:
      isExpired in interface AuthToken