Class EnvironmentVaultConfiguration

java.lang.Object
org.springframework.vault.config.AbstractVaultConfiguration
org.springframework.vault.config.EnvironmentVaultConfiguration
All Implemented Interfaces:
Aware, ApplicationContextAware

@Configuration public class EnvironmentVaultConfiguration extends AbstractVaultConfiguration implements ApplicationContextAware
Configuration using Spring's Environment to configure Spring Vault endpoint, SSL options and authentication options. This configuration class uses predefined property keys and is usually imported as part of an existing Java-based configuration. Configuration is obtained from other, existing property sources.

Usage: Java-based configuration part:

     
 @Configuration
 @Import(EnvironmentVaultConfiguration.class)
 public class MyConfiguration {
 }
      
Supplied properties:
     
 vault.uri=https://localhost:8200
 vault.token=00000000-0000-0000-0000-000000000000
      

Property keys

Authentication-specific properties must be provided depending on the authentication method.
Author:
Mark Paluch, Michal Budzyn, Raoof Mohammed, Justin Bertrand, Ryan Gow
See Also: