CommunicationUserToken Class
- java.
lang. Object - com.
azure. communication. administration. CommunicationUserToken
- com.
public final class CommunicationUserToken
Custom CommunicationUserToken class used to make CommunicationIdentityToken object include a CommunicationUser as a property.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| CommunicationUserToken() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
getExpiresOn()
Get the expires |
| String |
getToken()
Get the token property: The token issued for the identity. |
| com.azure.communication.common.CommunicationUser |
getUser()
Get the associated Communication |
|
Communication |
setExpiresOn(OffsetDateTime expiresOn)
Set the expires |
|
Communication |
setToken(String token)
Set the token property: The token issued for the identity. |
|
Communication |
setUser(CommunicationUser user)
Set the Communication |
Methods inherited from java.lang.Object
Constructor Details
CommunicationUserToken
public CommunicationUserToken()
Method Details
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn property: The expiry time of the token.
Returns:
getToken
public String getToken()
Get the token property: The token issued for the identity.
Returns:
getUser
public CommunicationUser getUser()
Get the associated CommunicationUser object.
Returns:
setExpiresOn
public CommunicationUserToken setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The expiry time of the token.
Parameters:
Returns:
setToken
public CommunicationUserToken setToken(String token)
Set the token property: The token issued for the identity.
Parameters:
Returns:
setUser
public CommunicationUserToken setUser(CommunicationUser user)
Set the CommunicationUser object.
Parameters:
Returns: