Class AzureKeyVaultCertificateAutoConfiguration
java.lang.Object
com.azure.spring.cloud.autoconfigure.keyvault.certificates.AzureKeyVaultCertificateAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties
@ConditionalOnClass(com.azure.security.keyvault.certificates.CertificateClientBuilder.class)
@ConditionalOnProperty(value={"spring.cloud.azure.keyvault.certificate.enabled","spring.cloud.azure.keyvault.enabled"},
havingValue="true",
matchIfMissing=true)
@ConditionalOnAnyProperty(prefixes={"spring.cloud.azure.keyvault.certificate","spring.cloud.azure.keyvault"},
name="endpoint")
@Import(AzureKeyVaultConfiguration.class)
public class AzureKeyVaultCertificateAutoConfiguration
extends Object
Auto-configuration
for Azure Key Vault Certificate support.- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.security.keyvault.certificates.CertificateAsyncClient
azureKeyVaultCertificateAsyncClient
(com.azure.security.keyvault.certificates.CertificateClientBuilder builder) Autoconfigure theCertificateAsyncClient
instance.com.azure.security.keyvault.certificates.CertificateClient
azureKeyVaultCertificateClient
(com.azure.security.keyvault.certificates.CertificateClientBuilder builder) Autoconfigure theCertificateClient
instance.
-
Constructor Details
-
AzureKeyVaultCertificateAutoConfiguration
public AzureKeyVaultCertificateAutoConfiguration()
-
-
Method Details
-
azureKeyVaultCertificateClient
@Bean @ConditionalOnMissingBean public com.azure.security.keyvault.certificates.CertificateClient azureKeyVaultCertificateClient(com.azure.security.keyvault.certificates.CertificateClientBuilder builder) Autoconfigure theCertificateClient
instance.- Parameters:
builder
- theCertificateClientBuilder
to build the instance.- Returns:
- the certificate client instance.
-
azureKeyVaultCertificateAsyncClient
@Bean @ConditionalOnMissingBean public com.azure.security.keyvault.certificates.CertificateAsyncClient azureKeyVaultCertificateAsyncClient(com.azure.security.keyvault.certificates.CertificateClientBuilder builder) Autoconfigure theCertificateAsyncClient
instance.- Parameters:
builder
- theCertificateClientBuilder
to build the instance.- Returns:
- the certificate async client instance.
-