Class AzureCredentialResolvers
java.lang.Object
com.azure.spring.cloud.core.credential.AzureCredentialResolvers
A
AzureCredentialResolvers can resolve the Azure credential from the AzureProperties with a list of
provided AzureCredentialResolver.-
Constructor Summary
ConstructorsConstructorDescriptionAzureCredentialResolvers(List<AzureCredentialResolver<?>> resolvers) Create aAzureCredentialResolverswith a list ofAzureCredentialResolverobjects.AzureCredentialResolvers(List<AzureCredentialResolver<?>> resolvers, Comparator<AzureCredentialResolver<?>> comparator) Create aAzureCredentialResolverswith a list ofAzureCredentialResolverobjects, and the order of the resolvers will be determined by the comparator. -
Method Summary
Modifier and TypeMethodDescriptionresolve(AzureProperties azureProperties) Resolve the Azure credential from theAzureProperties.
-
Constructor Details
-
AzureCredentialResolvers
Create aAzureCredentialResolverswith a list ofAzureCredentialResolverobjects.- Parameters:
resolvers- The list of resolvers used to resolve credential.
-
AzureCredentialResolvers
public AzureCredentialResolvers(List<AzureCredentialResolver<?>> resolvers, Comparator<AzureCredentialResolver<?>> comparator) Create aAzureCredentialResolverswith a list ofAzureCredentialResolverobjects, and the order of the resolvers will be determined by the comparator.- Parameters:
resolvers- The list of resolvers used to resolve credential.comparator- The comparator to determine the execution order of the resolvers.
-
-
Method Details
-
resolve
Resolve the Azure credential from theAzureProperties.- Parameters:
azureProperties- TheAzurePropertiesobject.- Returns:
- An azure credential object.
-