@Deprecated @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)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.core.CredentialsProvider |
googleCredentials(GcpSecretManagerProperties secretManagerProperties)
Deprecated.
|
com.google.cloud.secretmanager.v1.SecretManagerServiceClient |
secretManagerClient(com.google.api.gax.core.CredentialsProvider googleCredentials)
Deprecated.
|
SecretManagerPropertySourceLocator |
secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate)
Deprecated.
|
SecretManagerTemplate |
secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
Deprecated.
|
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 @ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.legacy", matchIfMissing=true) public SecretManagerPropertySourceLocator secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate)
Copyright © 2023. All rights reserved.