Interface ExpiringAccessToken
-
- All Superinterfaces:
AccessToken
- All Known Subinterfaces:
RefreshableToken,RefreshableTokenData
- All Known Implementing Classes:
ExpiringAccessTokenImpl,OAuthToken,RefreshableTokenDataImpl,RefreshableTokenImpl
public interface ExpiringAccessToken extends AccessToken
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.connections.AccessToken
TOKEN_ID_PREFIX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCreateTimeMs()longgetTimeToLiveMs()booleanisExpired()booleanisExpiring()booleanisValid()-
Methods inherited from interface jetbrains.buildServer.connections.AccessToken
getAccessToken
-
-
-
-
Method Detail
-
getCreateTimeMs
long getCreateTimeMs()
- Returns:
- a creation timestamp in milliseconds since epoch
-
getTimeToLiveMs
long getTimeToLiveMs()
- Returns:
- time to live in milliseconds, a negative value for a never expiring token
-
isExpired
boolean isExpired()
- Returns:
- true if the token has already expired
-
isExpiring
boolean isExpiring()
- Returns:
- true if the token is about to be expired soon
-
isValid
boolean isValid()
- Returns:
- true if the object represents a valid token (even if it is expired)
-
-