Package io.micronaut.azure.secretmanager
Class AzureVaultConfigurationClient
java.lang.Object
io.micronaut.azure.secretmanager.AzureVaultConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(beans=com.azure.security.keyvault.secrets.SecretClient.class)
public class AzureVaultConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
Distributed configuration client implementation that fetches application secret values from Azure keyvalut.
- Author:
- Nemanja Mikic
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionAzureVaultConfigurationClient
(AzureKeyVaultConfigurationProperties azureKeyVaultConfigurationProperties, @Nullable ExecutorService executorService, SecretKeyVaultClient secretClient) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
getPropertySources
(io.micronaut.context.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
AzureVaultConfigurationClient
public AzureVaultConfigurationClient(AzureKeyVaultConfigurationProperties azureKeyVaultConfigurationProperties, @Named("io") @Nullable @Nullable ExecutorService executorService, SecretKeyVaultClient secretClient) Default Constructor.- Parameters:
azureKeyVaultConfigurationProperties
- Azure Secret Vault Client ConfigurationexecutorService
- Executor ServicesecretClient
- The secrets client
-
-
Method Details
-
getPropertySources
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) - Specified by:
getPropertySources
in interfaceio.micronaut.discovery.config.ConfigurationClient
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-