@Configuration
@ConditionalOnProperty(name="spring.cloud.vault.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value={VaultGenericBackendProperties.class,VaultKeyValueBackendProperties.class})
@Order(value=2147483637)
public class VaultBootstrapPropertySourceConfiguration
extends Object
implements org.springframework.beans.factory.InitializingBean
Auto-configuration
for Spring Vault's PropertySourceLocator support.| Constructor and Description |
|---|
VaultBootstrapPropertySourceConfiguration(org.springframework.context.ConfigurableApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.vault.core.lease.SecretLeaseContainer |
secretLeaseContainer(org.springframework.vault.core.VaultOperations vaultOperations,
VaultBootstrapConfiguration.TaskSchedulerWrapper taskSchedulerWrapper) |
org.springframework.cloud.bootstrap.config.PropertySourceLocator |
vaultPropertySourceLocator(org.springframework.vault.core.VaultOperations operations,
VaultProperties vaultProperties,
VaultKeyValueBackendProperties kvBackendProperties,
VaultGenericBackendProperties genericBackendProperties,
org.springframework.beans.factory.ObjectFactory<org.springframework.vault.core.lease.SecretLeaseContainer> secretLeaseContainerObjectFactory) |
public VaultBootstrapPropertySourceConfiguration(org.springframework.context.ConfigurableApplicationContext applicationContext)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean@Bean
public org.springframework.cloud.bootstrap.config.PropertySourceLocator vaultPropertySourceLocator(org.springframework.vault.core.VaultOperations operations,
VaultProperties vaultProperties,
VaultKeyValueBackendProperties kvBackendProperties,
VaultGenericBackendProperties genericBackendProperties,
org.springframework.beans.factory.ObjectFactory<org.springframework.vault.core.lease.SecretLeaseContainer> secretLeaseContainerObjectFactory)
@Bean
@Lazy
@ConditionalOnMissingBean
public org.springframework.vault.core.lease.SecretLeaseContainer secretLeaseContainer(org.springframework.vault.core.VaultOperations vaultOperations,
VaultBootstrapConfiguration.TaskSchedulerWrapper taskSchedulerWrapper)
vaultOperations - the VaultOperations.taskSchedulerWrapper - the VaultBootstrapConfiguration.TaskSchedulerWrapper.SessionManager for Vault session management.SessionManager,
LifecycleAwareSessionManagerCopyright © 2019 Pivotal Software, Inc.. All rights reserved.