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
Constructors Constructor Description GoogleSecretManagerV1AccessStrategy(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
checkRemotePermissions()
String
getSecretName(com.google.cloud.secretmanager.v1.Secret secret)
List<com.google.cloud.secretmanager.v1.Secret>
getSecrets()
String
getSecretValue(com.google.cloud.secretmanager.v1.Secret secret, Comparator<com.google.cloud.secretmanager.v1.SecretVersion> comparator)
-
-
-
Constructor Detail
-
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 Detail
-
getSecrets
public List<com.google.cloud.secretmanager.v1.Secret> 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
public String getSecretName(com.google.cloud.secretmanager.v1.Secret secret)
- Specified by:
getSecretName
in interfaceGoogleSecretManagerAccessStrategy
-
checkRemotePermissions
public Boolean checkRemotePermissions()
- Specified by:
checkRemotePermissions
in interfaceGoogleSecretManagerAccessStrategy
-
-