Class VaultTokenRenewalAutoConfiguration

java.lang.Object
io.pivotal.spring.cloud.config.client.VaultTokenRenewalAutoConfiguration

@AutoConfiguration(after=org.springframework.cloud.config.client.ConfigClientAutoConfiguration.class) @ConditionalOnBean(org.springframework.cloud.config.client.ConfigClientProperties.class) @ConditionalOnProperty(name="spring.cloud.config.token") @EnableConfigurationProperties @EnableScheduling public class VaultTokenRenewalAutoConfiguration extends Object
Configuration for a periodic Vault token renewer. Conditionally configured if there is a ConfigClientProperties bean and if there is a `spring.cloud.config.token` property set. By default, the token is renewed every 60 seconds and is renewed with a 5 minute time-to-live. The renewal rate can be configured by setting `vault.token.renew.rate` to some value that is the renewal rate in milliseconds. The renewal time-to-live can be specified with by setting `vault.token.ttl` to some value indicating the time-to-live in milliseconds.
Author:
cwalls