Class CommunicationUserIdentifierAndToken

java.lang.Object
com.azure.communication.identity.models.CommunicationUserIdentifierAndToken

public final class CommunicationUserIdentifierAndToken extends Object
The CommunicationUserIdentifierWithAccessTokenResult model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommunicationUserIdentifierAndToken(com.azure.communication.common.CommunicationUserIdentifier communicationUser, com.azure.core.credential.AccessToken userToken)
    Creates a CommunicationUserIdentifierAndToken object
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.communication.common.CommunicationUserIdentifier
    Get the communicationUser property: A Communication User Identifier.
    com.azure.core.credential.AccessToken
    Get the userToken property: A user token.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 identifier
      userToken - 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.