Class VaultBootstrapPropertySourceConfiguration
java.lang.Object
org.springframework.cloud.vault.config.VaultBootstrapPropertySourceConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@ConditionalOnProperty(name="spring.cloud.vault.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(VaultKeyValueBackendProperties.class)
@Order(2147483637)
@Deprecated
public class VaultBootstrapPropertySourceConfiguration
extends Object
implements org.springframework.beans.factory.InitializingBean
Deprecated.
Auto-configuration
for Spring Vault's PropertySourceLocator support.- Since:
- 1.1
- Author:
- Mark Paluch, Grenville Wilson, MÃ¥rten Svantesson
-
Constructor Summary
ConstructorsConstructorDescriptionVaultBootstrapPropertySourceConfiguration(VaultProperties vaultProperties, org.springframework.context.ConfigurableApplicationContext applicationContext) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.org.springframework.vault.core.lease.SecretLeaseContainersecretLeaseContainer(org.springframework.vault.core.VaultOperations vaultOperations, VaultAutoConfiguration.TaskSchedulerWrapper taskSchedulerWrapper, org.springframework.beans.factory.ObjectProvider<org.springframework.vault.authentication.SessionManager> sessionManager) Deprecated.org.springframework.cloud.bootstrap.config.PropertySourceLocatorvaultPropertySourceLocator(org.springframework.vault.core.VaultOperations operations, VaultProperties vaultProperties, VaultKeyValueBackendProperties kvBackendProperties, org.springframework.beans.factory.ObjectFactory<org.springframework.vault.core.lease.SecretLeaseContainer> secretLeaseContainerObjectFactory) Deprecated.
-
Constructor Details
-
VaultBootstrapPropertySourceConfiguration
public VaultBootstrapPropertySourceConfiguration(VaultProperties vaultProperties, org.springframework.context.ConfigurableApplicationContext applicationContext) Deprecated.
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
vaultPropertySourceLocator
@Bean public org.springframework.cloud.bootstrap.config.PropertySourceLocator vaultPropertySourceLocator(org.springframework.vault.core.VaultOperations operations, VaultProperties vaultProperties, VaultKeyValueBackendProperties kvBackendProperties, org.springframework.beans.factory.ObjectFactory<org.springframework.vault.core.lease.SecretLeaseContainer> secretLeaseContainerObjectFactory) Deprecated. -
secretLeaseContainer
@Bean @Lazy @ConditionalOnMissingBean public org.springframework.vault.core.lease.SecretLeaseContainer secretLeaseContainer(org.springframework.vault.core.VaultOperations vaultOperations, VaultAutoConfiguration.TaskSchedulerWrapper taskSchedulerWrapper, org.springframework.beans.factory.ObjectProvider<org.springframework.vault.authentication.SessionManager> sessionManager) Deprecated.- Parameters:
vaultOperations- theVaultOperations.taskSchedulerWrapper- theVaultAutoConfiguration.TaskSchedulerWrapper.sessionManager- theSessionManagerto listen for authentication events. Bean can be absent.- Returns:
- the
SecretLeaseContainerfor Vault secret lease management. - See Also:
-
spring.config.import=vault://instead.