java.lang.Object
io.avaje.http.client.AuthToken.Basic
- All Implemented Interfaces:
AuthToken
- Enclosing interface:
AuthToken
Standard AuthToken implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.avaje.http.client.AuthToken
AuthToken.Basic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the duration until expiry.booleanReturn true if the token has expired or is no longer valid.token()Return the Authorization bearer token.
-
Constructor Details
-
Basic
Create with token and valid until time.
-
-
Method Details
-
token
Description copied from interface:AuthTokenReturn the Authorization bearer token. -
isExpired
public boolean isExpired()Description copied from interface:AuthTokenReturn true if the token has expired or is no longer valid. -
expiration
Description copied from interface:AuthTokenReturn the duration until expiry.- Specified by:
expirationin interfaceAuthToken
-