Apply formatting settings from Spring Javaformat.
This commit is contained in:
@@ -320,8 +320,7 @@ class ClientAuthenticationFactory {
|
||||
Assert.hasText(this.vaultProperties.getToken(),
|
||||
"Initial Token (spring.cloud.vault.token) for Cubbyhole authentication must not be empty");
|
||||
|
||||
CubbyholeAuthenticationOptions options = CubbyholeAuthenticationOptions
|
||||
.builder() //
|
||||
CubbyholeAuthenticationOptions options = CubbyholeAuthenticationOptions.builder() //
|
||||
.wrapped() //
|
||||
.initialToken(VaultToken.of(this.vaultProperties.getToken())) //
|
||||
.build();
|
||||
|
||||
@@ -48,8 +48,8 @@ import org.springframework.vault.core.lease.SecretLeaseContainer;
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "spring.cloud.vault.enabled", matchIfMissing = true)
|
||||
@EnableConfigurationProperties({VaultGenericBackendProperties.class,
|
||||
VaultKeyValueBackendProperties.class})
|
||||
@EnableConfigurationProperties({ VaultGenericBackendProperties.class,
|
||||
VaultKeyValueBackendProperties.class })
|
||||
@Order(Ordered.LOWEST_PRECEDENCE - 10)
|
||||
public class VaultBootstrapPropertySourceConfiguration implements InitializingBean {
|
||||
|
||||
@@ -155,7 +155,7 @@ public class VaultBootstrapPropertySourceConfiguration implements InitializingBe
|
||||
|
||||
if (keyValueBackend instanceof VaultKeyValueBackendProperties
|
||||
&& ((VaultKeyValueBackendProperties) keyValueBackend)
|
||||
.getBackendVersion() == 2) {
|
||||
.getBackendVersion() == 2) {
|
||||
|
||||
for (String context : contexts) {
|
||||
secretBackendConfigurer.add(KeyValueSecretBackendMetadata
|
||||
|
||||
@@ -39,8 +39,8 @@ import org.springframework.context.annotation.Import;
|
||||
@ConditionalOnClass(HealthIndicator.class)
|
||||
@ConditionalOnProperty(name = "spring.cloud.vault.enabled", matchIfMissing = true)
|
||||
@AutoConfigureBefore(HealthIndicatorAutoConfiguration.class)
|
||||
@Import({VaultHealthIndicatorConfiguration.class,
|
||||
VaultReactiveHealthIndicatorConfiguration.class})
|
||||
@Import({ VaultHealthIndicatorConfiguration.class,
|
||||
VaultReactiveHealthIndicatorConfiguration.class })
|
||||
public class VaultHealthIndicatorAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class VaultHealthIndicatorConfiguration extends
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(name = {"vaultHealthIndicator"})
|
||||
@ConditionalOnMissingBean(name = { "vaultHealthIndicator" })
|
||||
public HealthIndicator vaultHealthIndicator() {
|
||||
return this.createHealthIndicator(this.vaultTemplates);
|
||||
}
|
||||
|
||||
@@ -492,8 +492,8 @@ public class VaultProperties implements EnvironmentAware {
|
||||
private Duration minRenewal;
|
||||
|
||||
/**
|
||||
* The expiry threshold. {@link Lease} is renewed the given {@link Duration} before it
|
||||
* expires.
|
||||
* The expiry threshold. {@link Lease} is renewed the given {@link Duration}
|
||||
* before it expires.
|
||||
*
|
||||
* @since 2.2
|
||||
*/
|
||||
|
||||
@@ -70,9 +70,9 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "spring.cloud.vault.enabled", matchIfMissing = true)
|
||||
@ConditionalOnExpression("${spring.cloud.vault.reactive.enabled:true}")
|
||||
@ConditionalOnClass({Flux.class, WebClient.class, ReactiveVaultOperations.class,
|
||||
HttpClient.class})
|
||||
@EnableConfigurationProperties({VaultProperties.class})
|
||||
@ConditionalOnClass({ Flux.class, WebClient.class, ReactiveVaultOperations.class,
|
||||
HttpClient.class })
|
||||
@EnableConfigurationProperties({ VaultProperties.class })
|
||||
@Order(Ordered.LOWEST_PRECEDENCE - 10)
|
||||
public class VaultReactiveBootstrapConfiguration {
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class VaultReactiveHealthIndicatorConfiguration extends
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean(name = {"vaultReactiveHealthIndicator"})
|
||||
@ConditionalOnMissingBean(name = { "vaultReactiveHealthIndicator" })
|
||||
ReactiveHealthIndicator vaultReactiveHealthIndicator() {
|
||||
return this.createHealthIndicator(this.reactiveVaultTemplates);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user