azure-communication-common-java

Solid

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

DevOps & Infrastructure 2,541 stars 295 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Azure Communication Common (Java) Shared authentication utilities and data structures for Azure Communication Services. ## Installation ```xml <dependency> <groupId>com.azure</groupId> <artifactId>azure-communication-common</artifactId> <version>1.4.0</version> </dependency> ``` ## Key Concepts | Class | Purpose | |-------|---------| | `CommunicationTokenCredential` | Authenticate users with ACS services | | `CommunicationTokenRefreshOptions` | Configure automatic token refresh | | `CommunicationUserIdentifier` | Identify ACS users | | `PhoneNumberIdentifier` | Identify PSTN phone numbers | | `MicrosoftTeamsUserIdentifier` | Identify Teams users | | `UnknownIdentifier` | Generic identifier for unknown types | ## CommunicationTokenCredential ### Static Token (Short-lived Clients) ```java import com.azure.communication.common.CommunicationTokenCredential; // Simple static token - no refresh String userToken = "<user-access-token>"; CommunicationTokenCredential credential = new CommunicationTokenCredential(userToken); // Use with Chat, Calling, etc. ChatClient chatClient = new ChatClientBuilder() .endpoint("https://<resource>.communication.azure.com") .credential(credential) .buildClient(); ``` ### Proactive Token Refresh (Long-lived Clients) ```java import com.azure.communication.common.CommunicationTokenRefreshOptions; import java.util.concurrent.Callable; // Token refresher callback - called when token is about to expire Callable<String>...

Details

Author
microsoft
Repository
microsoft/skills
Created
4 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category