CommunicationTokenScope Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. communication. identity. models. CommunicationTokenScope
- com.
- com.
public final class CommunicationTokenScope
extends ExpandableStringEnum<CommunicationTokenScope>
List of scopes for an access token.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Communication |
CHAT
Use this for full access to Chat APIs. |
|
static final
Communication |
CHAT_JOIN
Access to Chat APIs but without the authorization to create, delete or update chat threads. |
|
static final
Communication |
CHAT_JOIN_LIMITED
A more limited version of chat. |
|
static final
Communication |
VOIP
Use this for full access to Calling APIs. |
|
static final
Communication |
VOIP_JOIN
Access to Calling APIs but without the authorization to start new calls. |
Constructor Summary
| Constructor | Description |
|---|---|
| CommunicationTokenScope() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Communication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Communication |
fromString(String name)
Creates or finds a Communication |
|
static
Collection<Communication |
values()
Gets known Communication |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CHAT
public static final CommunicationTokenScope CHAT
Use this for full access to Chat 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
public static final CommunicationTokenScope VOIP
Use this for full access to Calling APIs.
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
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:
Returns:
values
public static Collection<CommunicationTokenScope> values()
Gets known CommunicationTokenScope values.
Returns: