Class Oauth2Token
java.lang.Object
org.shakespeareframework.retrofit.oauth2.Oauth2Token
A parsed OAuth2 token.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this is expired or will be expired in less than 10 seconds.
-
Constructor Details
-
Oauth2Token
- Parameters:
accessToken
- the access tokenString
for the Authorization headerexpiresIn
- number of seconds before the token expires
-
-
Method Details
-
isExpired
public boolean isExpired()Checks if this is expired or will be expired in less than 10 seconds.- Returns:
- true, this is expired or will be expired in less than 10 seconds
-
getAccessToken
- Returns:
- the access token
String
for the Authorization header
-