public class VaultCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider
that obtains credential values from
Vault
.Modifier and Type | Field and Description |
---|---|
static String |
VAULT_ADDRESS |
static String |
VAULT_TOKEN |
logger
Constructor and Description |
---|
VaultCredentialsProvider(String secretPath,
Map<String,String> propertyNames,
DrillConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Map<String,String> |
getCredentials() |
Map<String,String> |
getPropertyNames() |
String |
getSecretPath() |
int |
hashCode() |
public static final String VAULT_ADDRESS
public static final String VAULT_TOKEN
public VaultCredentialsProvider(String secretPath, Map<String,String> propertyNames, DrillConfig config) throws com.bettercloud.vault.VaultException
secretPath
- The Vault key value from which to readpropertyNames
- map with credential names as keys and vault keys as values.config
- drill configcom.bettercloud.vault.VaultException
- if exception happens when connecting to Vault.public Map<String,String> getCredentials()
getCredentials
in interface CredentialsProvider
public String getSecretPath()
Copyright © 1970 The Apache Software Foundation. All rights reserved.