Class WebPubSubClientAccessToken

java.lang.Object
com.azure.messaging.webpubsub.models.WebPubSubClientAccessToken

public final class WebPubSubClientAccessToken extends Object
A wrapper class for results of the getClientAccessToken APIs on WebPubSubServiceAsyncClient and WebPubSubServiceClient.
  • Constructor Details

    • WebPubSubClientAccessToken

      public WebPubSubClientAccessToken(String token, String url)
      Creates a new instance with the given values set as immutable properties.
      Parameters:
      token - The client access token that may be used to access the service.
      url - The url that may be used to access the service.
  • Method Details

    • getToken

      public String getToken()
      Returns the client access token that may be used to access the service.
      Returns:
      The client access token that may be used to access the service.
    • getUrl

      public String getUrl()
      Returns the url that may be used to access the service.
      Returns:
      The url that may be used to access the service.