@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=GcpSecretManagerProperties.class) @ConditionalOnClass(value={com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient.class,SecretManagerTemplate.class}) @ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.enabled", matchIfMissing=true) 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() |
SecretManagerPropertySourceLocator |
secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate) |
SecretManagerTemplate |
secretManagerTemplate(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 @ConditionalOnMissingBean public SecretManagerTemplate secretManagerTemplate(com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient client)
@Bean @ConditionalOnMissingBean public SecretManagerPropertySourceLocator secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.