- All Known Implementing Classes:
AuthToken.Basic
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.
-
Nested Class Summary
Nested Classes
static class
Standard AuthToken implementation.
-
Method Summary
Return the duration until expiry.
boolean
Return true if the token has expired or is no longer valid.
Create an return a AuthToken with the given token and time it is valid until.
Return the Authorization bearer token.
-
Method Details
-
token
Return the Authorization bearer token.
-
isExpired
boolean isExpired()
Return true if the token has expired or is no longer valid.
-
expiration
Return the duration until expiry.
-
of
Create an return a AuthToken with the given token and time it is valid until.