Class GcpSecretManagerAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.secretmanager.GcpSecretManagerAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(GcpSecretManagerProperties.class)
@ConditionalOnClass(SecretManagerTemplate.class)
@ConditionalOnProperty(value="spring.cloud.gcp.secretmanager.enabled",
matchIfMissing=true)
public class GcpSecretManagerAutoConfiguration
extends Object
Autoconfiguration for GCP Secret Manager.
- Since:
- 4.0.1
-
Constructor Summary
ConstructorDescriptionGcpSecretManagerAutoConfiguration
(com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpSecretManagerProperties properties, GcpProjectIdProvider projectIdProvider) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.cloud.secretmanager.v1.SecretManagerServiceClient
secretManagerTemplate
(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
-
Constructor Details
-
GcpSecretManagerAutoConfiguration
public GcpSecretManagerAutoConfiguration(com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpSecretManagerProperties properties, GcpProjectIdProvider projectIdProvider)
-
-
Method Details
-
secretManagerClient
@Bean @ConditionalOnMissingBean public com.google.cloud.secretmanager.v1.SecretManagerServiceClient secretManagerClient() throws IOException- Throws:
IOException
-
secretManagerTemplate
@Bean @ConditionalOnMissingBean public SecretManagerTemplate secretManagerTemplate(com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
-