Class 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 Detail

      • VaultBootstrapPropertySourceConfiguration

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

      • 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)
        Deprecated.
        Parameters:
        vaultOperations - the VaultOperations.
        taskSchedulerWrapper - the VaultAutoConfiguration.TaskSchedulerWrapper.
        Returns:
        the SessionManager for Vault session management.
        See Also:
        SessionManager, LifecycleAwareSessionManager