public class GoogleSecretManagerV1AccessStrategy extends Object implements GoogleSecretManagerAccessStrategy
| Constructor and 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) |
| Modifier and Type | Method and 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) |
public GoogleSecretManagerV1AccessStrategy(org.springframework.web.client.RestTemplate rest,
GoogleConfigProvider configProvider,
String serviceAccountFile)
throws IOException
IOExceptionpublic GoogleSecretManagerV1AccessStrategy(org.springframework.web.client.RestTemplate rest,
GoogleConfigProvider configProvider,
com.google.cloud.secretmanager.v1.SecretManagerServiceClient client)
public List<com.google.cloud.secretmanager.v1.Secret> getSecrets()
getSecrets in interface GoogleSecretManagerAccessStrategypublic String getSecretValue(com.google.cloud.secretmanager.v1.Secret secret, Comparator<com.google.cloud.secretmanager.v1.SecretVersion> comparator)
getSecretValue in interface GoogleSecretManagerAccessStrategypublic String getSecretName(com.google.cloud.secretmanager.v1.Secret secret)
getSecretName in interface GoogleSecretManagerAccessStrategypublic Boolean checkRemotePermissions()
checkRemotePermissions in interface GoogleSecretManagerAccessStrategyCopyright © 2022 Pivotal Software, Inc.. All rights reserved.