CommunicationUserToken Class

  • java.lang.Object
    • com.azure.communication.administration.CommunicationUserToken

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
OffsetDateTime getExpiresOn()

Get the expiresOn property: The expiry time of the token.

String getToken()

Get the token property: The token issued for the identity.

com.azure.communication.common.CommunicationUser getUser()

Get the associated CommunicationUser object.

CommunicationUserToken setExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: The expiry time of the token.

CommunicationUserToken setToken(String token)

Set the token property: The token issued for the identity.

CommunicationUserToken setUser(CommunicationUser user)

Set the CommunicationUser object.

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:

the expiresOn value.

getToken

public String getToken()

Get the token property: The token issued for the identity.

Returns:

the token value.

getUser

public CommunicationUser getUser()

Get the associated CommunicationUser object.

Returns:

the CommunicationUser object.

setExpiresOn

public CommunicationUserToken setExpiresOn(OffsetDateTime expiresOn)

Set the expiresOn property: The expiry time of the token.

Parameters:

expiresOn - the expiresOn value to set.

Returns:

the CommunicationIdentityToken object itself.

setToken

public CommunicationUserToken setToken(String token)

Set the token property: The token issued for the identity.

Parameters:

token - the token value to set.

Returns:

the CommunicationIdentityToken object itself.

setUser

public CommunicationUserToken setUser(CommunicationUser user)

Set the CommunicationUser object.

Parameters:

user - the id value to set.

Returns:

the CommunicationIdentityToken object itself.

Applies to