Class CommunicationAccessToken

java.lang.Object
com.azure.android.communication.common.CommunicationAccessToken

public final class CommunicationAccessToken extends Object
Represents an immutable communication access token with a token string and an expiration time.
  • Constructor Details

    • CommunicationAccessToken

      public CommunicationAccessToken(String token, org.threeten.bp.OffsetDateTime expiresAt)
      Creates a communication access token instance.
      Parameters:
      token - The token string.
      expiresAt - The expiration time.
  • Method Details

    • getToken

      public String 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.