Class GoogleSecretManagerV1AccessStrategy
java.lang.Object
org.springframework.cloud.config.server.environment.secretmanager.GoogleSecretManagerV1AccessStrategy
- All Implemented Interfaces:
GoogleSecretManagerAccessStrategy
public class GoogleSecretManagerV1AccessStrategy
extends Object
implements GoogleSecretManagerAccessStrategy
-
Constructor Summary
ConstructorDescriptionGoogleSecretManagerV1AccessStrategy
(org.springframework.web.client.RestTemplate rest, GoogleConfigProvider configProvider, com.google.cloud.secretmanager.v1.SecretManagerServiceClient client) GoogleSecretManagerV1AccessStrategy
(org.springframework.web.client.RestTemplate rest, GoogleConfigProvider configProvider, String serviceAccountFile) -
Method Summary
Modifier and TypeMethodDescriptiongetSecretName
(com.google.cloud.secretmanager.v1.Secret secret) List<com.google.cloud.secretmanager.v1.Secret>
getSecretValue
(com.google.cloud.secretmanager.v1.Secret secret, Comparator<com.google.cloud.secretmanager.v1.SecretVersion> comparator)
-
Constructor Details
-
GoogleSecretManagerV1AccessStrategy
public GoogleSecretManagerV1AccessStrategy(org.springframework.web.client.RestTemplate rest, GoogleConfigProvider configProvider, String serviceAccountFile) throws IOException - Throws:
IOException
-
GoogleSecretManagerV1AccessStrategy
public GoogleSecretManagerV1AccessStrategy(org.springframework.web.client.RestTemplate rest, GoogleConfigProvider configProvider, com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
-
-
Method Details
-
getSecrets
- Specified by:
getSecrets
in interfaceGoogleSecretManagerAccessStrategy
-
getSecretValue
public String getSecretValue(com.google.cloud.secretmanager.v1.Secret secret, Comparator<com.google.cloud.secretmanager.v1.SecretVersion> comparator) - Specified by:
getSecretValue
in interfaceGoogleSecretManagerAccessStrategy
-
getSecretName
- Specified by:
getSecretName
in interfaceGoogleSecretManagerAccessStrategy
-
checkRemotePermissions
- Specified by:
checkRemotePermissions
in interfaceGoogleSecretManagerAccessStrategy
-