GetClientAccessTokenOptions Class
- java.
lang. Object - com.
azure. messaging. webpubsub. models. GetClientAccessTokenOptions
- com.
public final class GetClientAccessTokenOptions
Options class for configuring the getClientAccessToken(GetClientAccessTokenOptions options) and getClientAccessToken(GetClientAccessTokenOptions options) methods.
Constructor Summary
| Constructor | Description |
|---|---|
| GetClientAccessTokenOptions() |
Creates an instance of Get |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Get |
addGroup(String group)
Adds a group to the requested authentication token. |
|
Get |
addRole(String role)
Adds a role to the requested authentication token. |
| Duration |
getExpiresAfter()
Returns the duration after which the requested authentication token will expire. |
| List<String> |
getGroups()
Returns the complete set of groups to be included when creating the authentication token. |
| List<String> |
getRoles()
Returns the complete set of roles to be included when creating the authentication token. |
| String |
getUserId()
Returns the user ID to be used when creating the authentication token. |
|
Web |
getWebPubSubClientProtocol()
Returns the endpoint type of the client. |
|
Get |
setExpiresAfter(Duration expiresAfter)
Specifies when the duration after which the requested authentication token will expire. |
|
Get |
setGroups(List<String> groups)
Specifies the complete set of groups to be included when creating the authentication token, overwriting any other groups previously set on this instance. |
|
Get |
setRoles(List<String> roles)
Specifies the complete set of roles to be included when creating the authentication token, overwriting any other roles previously set on this instance. |
|
Get |
setUserId(String userId)
Specifies the user ID to be used when creating the authentication token. |
|
Get |
setWebPubSubClientProtocol(WebPubSubClientProtocol webPubSubClientProtocol)
Specifies the endpoint type of the client. |
Methods inherited from java.lang.Object
Constructor Details
GetClientAccessTokenOptions
public GetClientAccessTokenOptions()
Creates an instance of GetClientAccessTokenOptions.
Method Details
addGroup
public GetClientAccessTokenOptions addGroup(String group)
Adds a group to the requested authentication token.
Parameters:
Returns:
addRole
public GetClientAccessTokenOptions addRole(String role)
Adds a role to the requested authentication token.
Parameters:
Returns:
getExpiresAfter
public Duration getExpiresAfter()
Returns the duration after which the requested authentication token will expire.
Returns:
getGroups
public List<String> getGroups()
Returns the complete set of groups to be included when creating the authentication token.
Returns:
getRoles
public List<String> getRoles()
Returns the complete set of roles to be included when creating the authentication token.
Returns:
getUserId
public String getUserId()
Returns the user ID to be used when creating the authentication token.
Returns:
getWebPubSubClientProtocol
public WebPubSubClientProtocol getWebPubSubClientProtocol()
Returns the endpoint type of the client.
Returns:
setExpiresAfter
public GetClientAccessTokenOptions setExpiresAfter(Duration expiresAfter)
Specifies when the duration after which the requested authentication token will expire.
Parameters:
Returns:
setGroups
public GetClientAccessTokenOptions setGroups(List<String> groups)
Specifies the complete set of groups to be included when creating the authentication token, overwriting any other groups previously set on this instance.
Parameters:
Returns:
setRoles
public GetClientAccessTokenOptions setRoles(List<String> roles)
Specifies the complete set of roles to be included when creating the authentication token, overwriting any other roles previously set on this instance.
Parameters:
Returns:
setUserId
public GetClientAccessTokenOptions setUserId(String userId)
Specifies the user ID to be used when creating the authentication token.
Parameters:
Returns:
setWebPubSubClientProtocol
public GetClientAccessTokenOptions setWebPubSubClientProtocol(WebPubSubClientProtocol webPubSubClientProtocol)
Specifies the endpoint type of the client. Default type is default
Parameters:
Returns: