Class OnBehalfOfCredential

java.lang.Object
com.azure.identity.OnBehalfOfCredential
All Implemented Interfaces:
com.azure.core.credential.TokenCredential

public class OnBehalfOfCredential extends Object implements com.azure.core.credential.TokenCredential
An AAD credential that acquires a token with a client secret and user assertion for an AAD application on behalf of a user principal.
  • Method Details

    • getToken

      public Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request)
      Specified by:
      getToken in interface com.azure.core.credential.TokenCredential
    • getTokenSync

      public com.azure.core.credential.AccessToken getTokenSync(com.azure.core.credential.TokenRequestContext request)
      Specified by:
      getTokenSync in interface com.azure.core.credential.TokenCredential