Package com.azure.identity
Package containing various types of credentials and classes
for retrieving access tokens from various configurations.
-
Class Summary Class Description AadCredentialBuilderBase<T extends AadCredentialBuilderBase<T>> The base class for credential builders that allow specifying a client ID and tenant ID for an Azure Active Directory.AuthenticationRecord Represents the account information relating to an authentication requestAuthorizationCodeCredential An AAD credential that acquires a token with an Oauth 2.0 authorization code grant for an AAD application.AuthorizationCodeCredentialBuilder Fluent credential builder for instantiating aAuthorizationCodeCredential
.AzureAuthorityHosts Defines fields exposing the well known authority hosts for the Azure Public Cloud and sovereign clouds.AzureCliCredential A credential provider that provides token credentials based on Azure CLI command.AzureCliCredentialBuilder Fluent credential builder for instantiating aAzureCliCredential
.AzurePowerShellCredential A credential provider that provides token credentials based on Azure Power Shell command.AzurePowerShellCredentialBuilder Fluent credential builder for instantiating aAzurePowerShellCredential
.ChainedTokenCredential A token credential provider that can provide a credential from a list of providers.ChainedTokenCredentialBuilder Fluent credential builder for instantiating aChainedTokenCredential
.ClientCertificateCredential An AAD credential that acquires a token with a client certificate for an AAD application.ClientCertificateCredentialBuilder Fluent credential builder for instantiating aClientCertificateCredential
.ClientSecretCredential An AAD credential that acquires a token with a client secret for an AAD application.ClientSecretCredentialBuilder Fluent credential builder for instantiating aClientSecretCredential
.CredentialBuilderBase<T extends CredentialBuilderBase<T>> The base class for all the credential builders.DefaultAzureCredential Creates a credential using environment variables or the shared token cache.DefaultAzureCredentialBuilder Fluent credential builder for instantiating aDefaultAzureCredential
.DeviceCodeCredential An AAD credential that acquires a token with a device code for an AAD application.DeviceCodeCredentialBuilder Fluent credential builder for instantiating aDeviceCodeCredential
.DeviceCodeInfo Response returned from the STS device code endpoint containing information necessary for device code flow.EnvironmentCredential A credential provider that provides token credentials based on environment variables.EnvironmentCredentialBuilder Fluent credential builder for instantiating aEnvironmentCredential
.IntelliJCredential A credential provider that provides token credentials from Azure Tools for IntelliJ plugin credential cache.IntelliJCredentialBuilder Fluent credential builder for instantiating aIntelliJCredential
.InteractiveBrowserCredential An AAD credential that acquires a token for an AAD application by prompting the login in the default browser.InteractiveBrowserCredentialBuilder Fluent credential builder for instantiating aInteractiveBrowserCredential
.ManagedIdentityCredential The base class for Managed Service Identity token based credentials.ManagedIdentityCredentialBuilder Fluent credential builder for instantiating aManagedIdentityCredential
.OnBehalfOfCredential An AAD credential that acquires a token with a client secret and user assertion for an AAD application on behalf of a user principal.OnBehalfOfCredentialBuilder Fluent credential builder for instantiating aOnBehalfOfCredential
.SharedTokenCacheCredential A credential provider that provides token credentials from the MSAL shared token cache.SharedTokenCacheCredentialBuilder Fluent credential builder for instantiating aSharedTokenCacheCredential
.TokenCachePersistenceOptions Represents the Persistence Token Cache options used to setup the persistent access token cache.UsernamePasswordCredential An AAD credential that acquires a token with a username and a password.UsernamePasswordCredentialBuilder Fluent credential builder for instantiating aUsernamePasswordCredential
.VisualStudioCodeCredential Enables authentication to Azure Active Directory using data from Visual Studio CodeVisualStudioCodeCredentialBuilder Fluent credential builder for instantiating aVisualStudioCodeCredential
. -
Exception Summary Exception Description AuthenticationRequiredException The exception thrown to indicate that interactive authentication is required.CredentialUnavailableException The exception thrown when aTokenCredential
did not attempt to authenticate and retrieveAccessToken
, as its prerequisite information or state was not available.