A token can be used to communicate with the Sentiance API.
Date getExpiryDate()Returns a
Date
object indicating the token expiry date.The SDK will always attempt to return a valid token, granted proper network connectivity exists to allow token refresh.
String getTokenId()Returns the token ID.
boolean isExpired()Returns true if the token is expired.
void setExpiryDate(Date expiryDate)Sets the token expiryDate
Parameters | |
---|---|
expiryDate | A Date object indicating the token expiry date. |
void setTokenId(String tokenId)Sets the token ID.
Parameters | |
---|---|
tokenId | The token ID. |