- 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
Modifier and TypeInterfaceDescriptionstatic class
Standard AuthToken implementation. -
Method Summary
-
Method Details
-
token
String token()Return the Authorization bearer token. -
isExpired
boolean isExpired()Return true if the token has expired or is no longer valid. -
of
Create an return a AuthToken with the given token and time it is valid until.
-