Class HadoopCredentialsProvider
java.lang.Object
org.apache.drill.exec.store.security.HadoopCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
Implementation of
CredentialsProvider
that obtains credential values from
Configuration
properties.
Its constructor accepts a map with credential names as keys and property names as values.
-
Field Summary
Fields inherited from interface org.apache.drill.common.logical.security.CredentialsProvider
logger
-
Constructor Summary
ConstructorDescriptionHadoopCredentialsProvider
(Map<String, String> propertyNames) HadoopCredentialsProvider
(org.apache.hadoop.conf.Configuration configuration, Map<String, String> propertyNames) -
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
-
HadoopCredentialsProvider
-
HadoopCredentialsProvider
-
-
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
-
getPropertyNames
-
equals
-
hashCode
public int hashCode()
-