Class CommunicationUserIdentifierAndToken
java.lang.Object
com.azure.communication.identity.models.CommunicationUserIdentifierAndToken
The CommunicationUserIdentifierWithAccessTokenResult model.
-
Constructor Summary
ConstructorsConstructorDescriptionCommunicationUserIdentifierAndToken(com.azure.communication.common.CommunicationUserIdentifier communicationUser, com.azure.core.credential.AccessToken userToken) Creates a CommunicationUserIdentifierAndToken object -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.communication.common.CommunicationUserIdentifiergetUser()Get the communicationUser property: A Communication User Identifier.com.azure.core.credential.AccessTokenGet the userToken property: A user token.
-
Constructor Details
-
CommunicationUserIdentifierAndToken
public CommunicationUserIdentifierAndToken(com.azure.communication.common.CommunicationUserIdentifier communicationUser, com.azure.core.credential.AccessToken userToken) Creates a CommunicationUserIdentifierAndToken object- Parameters:
communicationUser- the communication user identifieruserToken- the user token of the communication user- Throws:
IllegalArgumentException- thrown if id parameter fail the validation.
-
-
Method Details
-
getUser
public com.azure.communication.common.CommunicationUserIdentifier getUser()Get the communicationUser property: A Communication User Identifier.- Returns:
- the communicationUser value.
-
getUserToken
public com.azure.core.credential.AccessToken getUserToken()Get the userToken property: A user token.- Returns:
- the userToken value.
-