Class AzureKeyVaultSecretAutoConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.keyvault.secrets.AzureKeyVaultSecretAutoConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties @ConditionalOnClass(com.azure.security.keyvault.secrets.SecretClientBuilder.class) @ConditionalOnProperty(value={"spring.cloud.azure.keyvault.secret.enabled","spring.cloud.azure.keyvault.enabled"}, havingValue="true", matchIfMissing=true) @ConditionalOnAnyProperty(prefixes={"spring.cloud.azure.keyvault.secret","spring.cloud.azure.keyvault"}, name="endpoint") @Import(AzureKeyVaultConfiguration.class) public class AzureKeyVaultSecretAutoConfiguration extends Object
Auto-configuration for Azure Key Vault Secrets support.
Since:
4.0.0
  • Constructor Details

    • AzureKeyVaultSecretAutoConfiguration

      public AzureKeyVaultSecretAutoConfiguration()
  • Method Details

    • azureKeyVaultSecretClient

      @Bean @ConditionalOnMissingBean public com.azure.security.keyvault.secrets.SecretClient azureKeyVaultSecretClient(com.azure.security.keyvault.secrets.SecretClientBuilder builder)
      Autoconfigure the SecretClient instance.
      Parameters:
      builder - the SecretClientBuilder to build the instance.
      Returns:
      the secret client instance.
    • azureKeyVaultSecretAsyncClient

      @Bean @ConditionalOnMissingBean public com.azure.security.keyvault.secrets.SecretAsyncClient azureKeyVaultSecretAsyncClient(com.azure.security.keyvault.secrets.SecretClientBuilder builder)
      Autoconfigure the SecretAsyncClient instance.
      Parameters:
      builder - the SecretClientBuilder to build the instance.
      Returns:
      the secret async client instance.