@Configuration @EnableConfigurationProperties(value=GcpSecretManagerProperties.class) @ConditionalOnClass(value=com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient.class) @ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.bootstrap.enabled") public class GcpSecretManagerBootstrapConfiguration extends Object
Environment.| Constructor and Description |
|---|
GcpSecretManagerBootstrapConfiguration(GcpSecretManagerProperties properties,
org.springframework.core.env.ConfigurableEnvironment configurableEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient |
secretManagerClient() |
org.springframework.cloud.bootstrap.config.PropertySourceLocator |
secretManagerPropertySourceLocator(com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient client) |
public GcpSecretManagerBootstrapConfiguration(GcpSecretManagerProperties properties, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment) throws IOException
IOException@Bean
@ConditionalOnMissingBean
public com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient secretManagerClient()
throws IOException
IOException@Bean public org.springframework.cloud.bootstrap.config.PropertySourceLocator secretManagerPropertySourceLocator(com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient client)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.