Class VaultCredentialsProvider
java.lang.Object
org.apache.drill.exec.store.security.vault.VaultCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
Implementation of
CredentialsProvider that obtains credential values from
Vault.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVaultCredentialsProvider(String secretPath, Map<String, String> propertyNames, DrillConfig config) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.common.logical.security.CredentialsProvider
setUserCredentials
-
Field Details
-
VAULT_ADDRESS
- See Also:
-
VAULT_APP_ROLE_ID
- See Also:
-
VAULT_SECRET_ID
- See Also:
-
QUERY_USER_VAR
- See Also:
-
-
Constructor Details
-
VaultCredentialsProvider
public VaultCredentialsProvider(String secretPath, Map<String, String> propertyNames, DrillConfig config) throws com.bettercloud.vault.VaultException- Parameters:
secretPath- The Vault key value from which to readpropertyNames- map with credential names as keys and vault keys as values.config- drill config- Throws:
com.bettercloud.vault.VaultException- if exception happens when connecting to Vault.
-
-
Method Details
-
getCredentials
- Specified by:
getCredentialsin interfaceCredentialsProvider
-
getUserCredentials
- Specified by:
getUserCredentialsin interfaceCredentialsProvider
-
getSecretPath
-
getPropertyNames
-
equals
-
hashCode
public int hashCode()
-