- All Known Implementing Classes:
AuthToken.Basic
public interface AuthToken
Represents an Authorization Bearer token that can be held on the context.
-
Nested Class Summary
Nested Classes
static class
Standard AuthToken implementation.
-
Method Summary
Duration until expiration.
boolean
Whether the token has expired or no longer valid.
Create an AuthToken with the given token and when it expires.
The Authorization bearer token.
-
Method Details
-
token
The Authorization bearer token.
-
isExpired
boolean isExpired()
Whether the token has expired or no longer valid.
-
expiration
Duration until expiration.
-
of
Create an AuthToken with the given token and when it expires.