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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.security.keyvault.secrets.SecretAsyncClient
azureKeyVaultSecretAsyncClient
(com.azure.security.keyvault.secrets.SecretClientBuilder builder) Autoconfigure theSecretAsyncClient
instance.com.azure.security.keyvault.secrets.SecretClient
azureKeyVaultSecretClient
(com.azure.security.keyvault.secrets.SecretClientBuilder builder) Autoconfigure theSecretClient
instance.
-
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 theSecretClient
instance.- Parameters:
builder
- theSecretClientBuilder
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 theSecretAsyncClient
instance.- Parameters:
builder
- theSecretClientBuilder
to build the instance.- Returns:
- the secret async client instance.
-