Class MixedRealityStsClient

java.lang.Object
com.azure.mixedreality.authentication.MixedRealityStsClient

public final class MixedRealityStsClient extends Object
Represents the Mixed Reality STS client for retrieving STS tokens used to access Mixed Reality services.
See Also:
  • Method Details

    • getToken

      public AccessToken getToken()
      Retrieve a token from the STS service for the specified account information.
      Returns:
      An AccessToken used to access Mixed Reality services matching the account's permissions.
    • getTokenWithResponse

      public Response<AccessToken> getTokenWithResponse(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 AccessToken used to access Mixed Reality services matching the account's permissions.