@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=GcpKmsProperties.class) @ConditionalOnClass(value={com.google.cloud.kms.v1.KeyManagementServiceClient.class,KmsTemplate.class}) @ConditionalOnProperty(value="spring.cloud.gcp.kms.enabled", matchIfMissing=true) public class GcpKmsAutoConfiguration extends Object
Constructor and Description |
---|
GcpKmsAutoConfiguration(GcpKmsProperties properties) |
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.core.CredentialsProvider |
googleCredentials(GcpKmsProperties kmsProperties) |
KeyManagementServiceClient |
keyManagementClient(com.google.api.gax.core.CredentialsProvider googleCredentials) |
KmsTemplate |
kmsTemplate(KeyManagementServiceClient client) |
public GcpKmsAutoConfiguration(GcpKmsProperties properties)
@Bean @ConditionalOnMissingBean public com.google.api.gax.core.CredentialsProvider googleCredentials(GcpKmsProperties kmsProperties) throws IOException
IOException
@Bean @ConditionalOnMissingBean public KeyManagementServiceClient keyManagementClient(com.google.api.gax.core.CredentialsProvider googleCredentials) throws IOException
IOException
@Bean @ConditionalOnMissingBean public KmsTemplate kmsTemplate(KeyManagementServiceClient client)
Copyright © 2021. All rights reserved.