Class AzureCliCredential

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

public class AzureCliCredential extends Object implements com.azure.core.credential.TokenCredential
A credential provider that provides token credentials based on Azure CLI command.
  • 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