Package com.azure.identity
Class DefaultAzureCredential
java.lang.Object
com.azure.identity.ChainedTokenCredential
com.azure.identity.DefaultAzureCredential
- All Implemented Interfaces:
com.azure.core.credential.TokenCredential
Creates a credential using environment variables or the shared token cache. It tries to create a valid credential in
the following order:
EnvironmentCredential
ManagedIdentityCredential
SharedTokenCacheCredential
IntelliJCredential
AzureCliCredential
AzurePowerShellCredential
- Fails if none of the credentials above could be created.
-
Method Summary
Methods inherited from class com.azure.identity.ChainedTokenCredential
getToken, getTokenSync