Class AuthToken.Basic

  • All Implemented Interfaces:
    AuthToken
    Enclosing interface:
    AuthToken

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

      • Basic

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

      • 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