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 Summary
FieldsModifier and TypeFieldDescriptionstatic final CommunicationTokenScopeUse this for full access to Chat APIs.static final CommunicationTokenScopeAccess to Chat APIs but without the authorization to create, delete or update chat threads.static final CommunicationTokenScopeA more limited version of chat.join that doesn't allow to add or remove participants.static final CommunicationTokenScopeUse this for full access to Calling APIs.static final CommunicationTokenScopeAccess to Calling APIs but without the authorization to start new calls. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommunicationTokenScopefromString(String name) Creates or finds a CommunicationTokenScope from its string representation.static Collection<CommunicationTokenScope>values()Gets known CommunicationTokenScope values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
CHAT
Use this for full access to Chat APIs. -
VOIP
Use this for full access to Calling APIs. -
CHAT_JOIN
Access to Chat APIs but without the authorization to create, delete or update chat threads. -
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
Access to Calling APIs but without the authorization to start new calls.
-
-
Constructor Details
-
CommunicationTokenScope
Deprecated.Use thefromString(String)factory method.Creates a new instance of CommunicationTokenScope value.
-
-
Method Details
-
fromString
Creates or finds a CommunicationTokenScope from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding CommunicationTokenScope.
-
values
Gets known CommunicationTokenScope values.- Returns:
- known CommunicationTokenScope values.
-
fromString(String)factory method.