Token
A token can be used to communicate with the Sentiance API.
Token API
getExpiryDate()
getExpiryDate()
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.
getTokenId()
getTokenId()
String getTokenId()
Returns the token ID.
isExpired()
isExpired()
boolean isExpired()
Returns true if the token is expired.
setExpiryDate()
setExpiryDate()
void setExpiryDate(Date expiryDate)
Sets the token expiryDate
Parameters
expiryDate
setTokenId()
setTokenId()
void setTokenId(String tokenId)
Sets the token ID.
Parameters
tokenId
The token ID.
Last updated