public class HadoopCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider that obtains credential values from
Configuration properties.
Its constructor accepts a map with credential names as keys and property names as values.
| Constructor and Description |
|---|
HadoopCredentialsProvider(org.apache.hadoop.conf.Configuration configuration,
Map<String,String> propertyNames) |
HadoopCredentialsProvider(Map<String,String> propertyNames) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<String,String> |
getCredentials()
Returns map with authentication credentials.
|
Map<String,String> |
getPropertyNames() |
int |
hashCode() |
public HadoopCredentialsProvider(org.apache.hadoop.conf.Configuration configuration,
Map<String,String> propertyNames)
public Map<String,String> getCredentials()
CredentialsProvider"username"
and map value is corresponding credential value.getCredentials in interface CredentialsProviderCopyright © 2021 The Apache Software Foundation. All rights reserved.