Class CommunicationTokenScope

java.lang.Object
com.azure.core.util.ExpandableStringEnum<CommunicationTokenScope>
com.azure.communication.identity.models.CommunicationTokenScope

public final class CommunicationTokenScope extends com.azure.core.util.ExpandableStringEnum<CommunicationTokenScope>
List of scopes for an access token.
  • Field Details

    • CHAT

      public static final CommunicationTokenScope CHAT
      Use this for full access to Chat APIs.
    • VOIP

      public static final CommunicationTokenScope VOIP
      Use this for full access to Calling APIs.
    • CHAT_JOIN

      public static final CommunicationTokenScope CHAT_JOIN
      Access to Chat APIs but without the authorization to create, delete or update chat threads.
    • CHAT_JOIN_LIMITED

      public static final CommunicationTokenScope CHAT_JOIN_LIMITED
      A more limited version of chat.join that doesn't allow to add or remove participants. Use this scope when the token bearer is not fully trusted, for example in guest scenarios.
    • VOIP_JOIN

      public static final CommunicationTokenScope VOIP_JOIN
      Access to Calling APIs but without the authorization to start new calls.
  • Constructor Details

    • CommunicationTokenScope

      @Deprecated public CommunicationTokenScope()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of CommunicationTokenScope value.
  • Method Details

    • fromString

      public static CommunicationTokenScope fromString(String name)
      Creates or finds a CommunicationTokenScope from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding CommunicationTokenScope.
    • values

      public static Collection<CommunicationTokenScope> values()
      Gets known CommunicationTokenScope values.
      Returns:
      known CommunicationTokenScope values.