Partilhar via


WebPubSubClientAccessToken Class

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

public final class WebPubSubClientAccessToken

A wrapper class for results of the getClientAccessToken APIs on WebPubSubServiceAsyncClient and WebPubSubServiceClient.

Constructor Summary

Constructor Description
WebPubSubClientAccessToken(String token, String url)

Creates a new instance with the given values set as immutable properties.

Method Summary

Modifier and Type Method and Description
String getToken()

Returns the client access token that may be used to access the service.

String getUrl()

Returns the url that may be used to access the service.

Methods inherited from java.lang.Object

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.

Applies to