com.azure.identity.AzureApplicationCredential Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-identity Show documentation
Show all versions of azure-identity Show documentation
This module contains client library for Microsoft Azure Identity.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.identity;
import com.azure.core.annotation.Immutable;
import com.azure.core.credential.TokenCredential;
import java.util.List;
/**
* Creates a credential using environment variables for Azure hosted Environments. It tries to create a valid credential
* in the following order:
*
*
* - {@link EnvironmentCredential}
* - {@link ManagedIdentityCredential}
* - Fails if none of the credentials above could be created.
*
*/
@Immutable
final class AzureApplicationCredential extends ChainedTokenCredential {
/**
* Creates default AzureApplicationCredential instance to use. This will use environment variables to create
* {@link EnvironmentCredential}
*
* If these environment variables are not available, then this will attempt to use Managed Identity Authentication
* via {@link ManagedIdentityCredential}.
*
* @param tokenCredentials the list of credentials to execute for authentication.
*/
AzureApplicationCredential(List tokenCredentials) {
super(tokenCredentials);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy