@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=GcpSecretManagerProperties.class) @ConditionalOnClass(value={com.google.cloud.secretmanager.v1.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.api.gax.core.CredentialsProvider |
googleCredentials(GcpSecretManagerProperties secretManagerProperties) |
com.google.cloud.secretmanager.v1.SecretManagerServiceClient |
secretManagerClient(com.google.api.gax.core.CredentialsProvider googleCredentials) |
SecretManagerPropertySourceLocator |
secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate) |
SecretManagerTemplate |
secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client) |
public GcpSecretManagerBootstrapConfiguration(GcpSecretManagerProperties properties, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment)
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider googleCredentials(GcpSecretManagerProperties secretManagerProperties) throws IOException
IOException
@Bean @ConditionalOnMissingBean public com.google.cloud.secretmanager.v1.SecretManagerServiceClient secretManagerClient(com.google.api.gax.core.CredentialsProvider googleCredentials) throws IOException
IOException
@Bean @ConditionalOnMissingBean public SecretManagerTemplate secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
@Bean @ConditionalOnMissingBean public SecretManagerPropertySourceLocator secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate)
Copyright © 2021. All rights reserved.