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.
since 3.0, use spring.config.import=vault:// instead.
Auto-configuration for Spring Vault's PropertySourceLocator support.
Since:
1.1
Author:
Mark Paluch, Grenville Wilson, MÃ¥rten Svantesson
  • Constructor Details

    • VaultBootstrapPropertySourceConfiguration

      public VaultBootstrapPropertySourceConfiguration(VaultProperties vaultProperties, org.springframework.context.ConfigurableApplicationContext applicationContext)
      Deprecated.
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Deprecated.
      Specified by:
      afterPropertiesSet in interface org.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 - the VaultOperations.
      taskSchedulerWrapper - the VaultAutoConfiguration.TaskSchedulerWrapper.
      sessionManager - the SessionManager to listen for authentication events. Bean can be absent.
      Returns:
      the SecretLeaseContainer for Vault secret lease management.
      See Also:
      • SessionManager
      • LifecycleAwareSessionManager