Class EnvCredentialsProvider
java.lang.Object
org.apache.drill.exec.store.security.EnvCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
Implementation of
CredentialsProvider
that obtains credential values from
environment variables.
Its constructor accepts a map with credential names as keys and env variable names as values.
-
Field Summary
Fields inherited from interface org.apache.drill.common.logical.security.CredentialsProvider
logger
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.common.logical.security.CredentialsProvider
getUserCredentials, setUserCredentials
-
Constructor Details
-
EnvCredentialsProvider
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsProvider
Returns map with authentication credentials. Key is the credential name, for example"username"
and map value is corresponding credential value.- Specified by:
getCredentials
in interfaceCredentialsProvider
-
getEnvVariables
-
equals
-
hashCode
public int hashCode()
-