- All Implemented Interfaces:
AuthToken
- Enclosing interface:
- AuthToken
public static class AuthToken.Basic
extends Object
implements AuthToken
Standard AuthToken implementation.
-
-
Constructor Summary
Constructors
Constructor |
Description |
Basic(String token,
Instant validUntil) |
Create with token and valid until time.
|
-
Method Summary
Modifier and Type |
Method |
Description |
boolean |
isExpired() |
Return true if the token has expired or is no longer valid.
|
String |
token() |
Return the Authorization bearer token.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Basic
Create with token and valid until time.
-
Method Details
-
token
Return the Authorization bearer token.
- Specified by:
token
in interface AuthToken
-
isExpired
public boolean isExpired()
Return true if the token has expired or is no longer valid.
- Specified by:
isExpired
in interface AuthToken