Class CommunicationAccessToken
java.lang.Object
com.azure.android.communication.common.CommunicationAccessToken
Represents an immutable communication access token with a token string and an expiration time.
-
Constructor Summary
ConstructorsConstructorDescriptionCommunicationAccessToken
(String token, org.threeten.bp.OffsetDateTime expiresAt) Creates a communication access token instance. -
Method Summary
-
Constructor Details
-
CommunicationAccessToken
Creates a communication access token instance.- Parameters:
token
- The token string.expiresAt
- The expiration time.
-
-
Method Details
-
getToken
- Returns:
- The token string.
-
getExpiresAt
public org.threeten.bp.OffsetDateTime getExpiresAt()- Returns:
- The time when the token expires, in UTC.
-
isExpired
public boolean isExpired()- Returns:
- If the token has expired.
-