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 Summary

    Modifier and Type
    Method
    Description
    com.azure.core.credential.AccessToken
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getToken

      public com.azure.core.credential.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 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 AccessToken used to access Mixed Reality services matching the account's permissions.