Class OracleCloudVaultConfigurationClient
java.lang.Object
io.micronaut.oraclecloud.discovery.vault.OracleCloudVaultConfigurationClient
- All Implemented Interfaces:
- io.micronaut.core.naming.Described,- io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(classes={com.oracle.bmc.secrets.Secrets.class,com.oracle.bmc.vault.Vaults.class}) @Requires(beans={com.oracle.bmc.vault.Vaults.class,com.oracle.bmc.secrets.Secrets.class}) @Requires(property="oci.vault")
public class OracleCloudVaultConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
A 
ConfigurationClient for Oracle Cloud Vault Configuration.- Since:
- 1.4.0
- Author:
- toddsharp
- 
Field SummaryFields inherited from interface io.micronaut.discovery.config.ConfigurationClientCONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
- 
Constructor SummaryConstructorsConstructorDescriptionOracleCloudVaultConfigurationClient(OracleCloudVaultConfiguration oracleCloudVaultClientConfiguration, @Nullable ExecutorService executorService, com.oracle.bmc.secrets.Secrets secretsClient, com.oracle.bmc.vault.Vaults vaultsClient) Default Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>getPropertySources(io.micronaut.context.env.Environment environment) Retrieves a publisher of property sources from the Oracle Cloud Vault configuration.
 
 This method iterates over the list of vaults defined in the Oracle Cloud Vault configuration, retrieves the secrets from each vault using the Oracle Cloud Vault API, filters the secrets based on the include and exclude patterns defined in the vault configuration, and returns a publisher of property sources containing the filtered secrets.
 
 If the discovery configuration is disabled, an empty publisher is returned.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.DescribedgetDescription
- 
Constructor Details- 
OracleCloudVaultConfigurationClientpublic OracleCloudVaultConfigurationClient(OracleCloudVaultConfiguration oracleCloudVaultClientConfiguration, @Named("blocking") @Nullable @Nullable ExecutorService executorService, com.oracle.bmc.secrets.Secrets secretsClient, com.oracle.bmc.vault.Vaults vaultsClient) Default Constructor.- Parameters:
- oracleCloudVaultClientConfiguration- Oracle CloudVault Client Configuration
- executorService- Executor Service
- secretsClient- The secrets client
- vaultsClient- The vaults client
 
 
- 
- 
Method Details- 
getPropertySourcespublic org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) Retrieves a publisher of property sources from the Oracle Cloud Vault configuration.
 
 This method iterates over the list of vaults defined in the Oracle Cloud Vault configuration, retrieves the secrets from each vault using the Oracle Cloud Vault API, filters the secrets based on the include and exclude patterns defined in the vault configuration, and returns a publisher of property sources containing the filtered secrets.
 
 If the discovery configuration is disabled, an empty publisher is returned.- Specified by:
- getPropertySourcesin interface- io.micronaut.discovery.config.ConfigurationClient
- Parameters:
- environment- the Micronaut environment
- Returns:
- a publisher of property sources containing the filtered secrets
 
- 
getDescription- Specified by:
- getDescriptionin interface- io.micronaut.core.naming.Described
 
 
-