Class MixedRealityStsClient
java.lang.Object
com.azure.mixedreality.authentication.MixedRealityStsClient
Represents the Mixed Reality STS client for retrieving STS tokens used to access Mixed Reality services.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.credential.AccessTokengetToken()Retrieve a token from the STS service for the specified account information.com.azure.core.http.rest.Response<com.azure.core.credential.AccessToken>getTokenWithResponse(com.azure.core.util.Context context) Retrieve a token from the STS service for the specified account information.
-
Method Details
-
getToken
public com.azure.core.credential.AccessToken getToken()Retrieve a token from the STS service for the specified account information.- Returns:
- An
AccessTokenused to access Mixed Reality services matching the account's permissions.
-
getTokenWithResponse
public com.azure.core.http.rest.Response<com.azure.core.credential.AccessToken> getTokenWithResponse(com.azure.core.util.Context context) Retrieve a token from the STS service for the specified account information.- Parameters:
context- Additional context that is passed through the Http pipeline during the service call.- Returns:
- A REST response contains the
AccessTokenused to access Mixed Reality services matching the account's permissions.
-