Class GcpSecretManagerBootstrapConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.secretmanager.GcpSecretManagerBootstrapConfiguration
@Deprecated
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(GcpSecretManagerProperties.class)
@ConditionalOnClass({com.google.cloud.secretmanager.v1.SecretManagerServiceClient.class,SecretManagerTemplate.class})
@ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.enabled",
matchIfMissing=true)
public class GcpSecretManagerBootstrapConfiguration
extends Object
Deprecated.
since external resources should be using Spring Boot's Config Data API, more info in
here.
Bootstrap Autoconfiguration for GCP Secret Manager which enables loading secrets as properties
into the application
Environment.- Since:
- 1.2.2
-
Constructor Summary
ConstructorsConstructorDescriptionGcpSecretManagerBootstrapConfiguration(GcpSecretManagerProperties properties, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.core.CredentialsProvidergoogleCredentials(GcpSecretManagerProperties secretManagerProperties) Deprecated.com.google.cloud.secretmanager.v1.SecretManagerServiceClientsecretManagerClient(com.google.api.gax.core.CredentialsProvider googleCredentials) Deprecated.secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate) Deprecated.secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client) Deprecated.
-
Constructor Details
-
GcpSecretManagerBootstrapConfiguration
public GcpSecretManagerBootstrapConfiguration(GcpSecretManagerProperties properties, org.springframework.core.env.ConfigurableEnvironment configurableEnvironment) Deprecated.
-
-
Method Details
-
googleCredentials
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider googleCredentials(GcpSecretManagerProperties secretManagerProperties) throws IOException Deprecated.- Throws:
IOException
-
secretManagerClient
@Bean @ConditionalOnMissingBean public com.google.cloud.secretmanager.v1.SecretManagerServiceClient secretManagerClient(com.google.api.gax.core.CredentialsProvider googleCredentials) throws IOException Deprecated.- Throws:
IOException
-
secretManagerTemplate
@Bean @ConditionalOnMissingBean public SecretManagerTemplate secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client) Deprecated. -
secretManagerPropertySourceLocator
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.legacy", matchIfMissing=true) public SecretManagerPropertySourceLocator secretManagerPropertySourceLocator(SecretManagerTemplate secretManagerTemplate) Deprecated.
-