public class HadoopCredentialConfiguration extends EntriesCredentialConfiguration implements org.apache.hadoop.conf.Configurable
| Modifier and Type | Class and Description |
|---|---|
static class |
HadoopCredentialConfiguration.Builder
Create a Builder with a withConfiguration method that
takes our Configuration.
|
static class |
HadoopCredentialConfiguration.ConfigurationEntriesAdapter
An adapter to use our Configuration object as the config object
for our superclass.
|
EntriesCredentialConfiguration.Entries, EntriesCredentialConfiguration.EntriesBuilderBASE_KEY_PREFIX, CLIENT_ID_SUFFIX, CLIENT_SECRET_SUFFIX, ENABLE_NULL_CREDENTIAL_SUFFIX, ENABLE_SERVICE_ACCOUNTS_SUFFIX, HTTP_TRANSPORT_DEFAULT, HTTP_TRANSPORT_KEY, JSON_KEYFILE_SUFFIX, OAUTH_CLIENT_FILE_SUFFIX, PROXY_ADDRESS_DEFAULT, PROXY_ADDRESS_KEY, SERVICE_ACCOUNT_EMAIL_SUFFIX, SERVICE_ACCOUNT_KEYFILE_SUFFIXLOG| Constructor and Description |
|---|
HadoopCredentialConfiguration(java.util.List<java.lang.String> prefixes) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf()
Translates the "Entries" configuration of the superclass into a Hadoop "Configuration"
using getConfigurationInto() on a wrapper which passes through each key from the Entries
to the corresponding Hadoop object.
|
static HadoopCredentialConfiguration.Builder |
newBuilder() |
void |
setConf(org.apache.hadoop.conf.Configuration entries)
Load configuration values from the provided Configuration source.
|
getConfigurationInto, newEntriesBuilder, setConfigurationgetClientId, getClientSecret, getCredential, getOAuthCredentialFile, getProxyAddress, getServiceAccountEmail, getServiceAccountJsonKeyFile, getServiceAccountKeyFile, getTransportType, isNullCredentialEnabled, isServiceAccountEnabled, setClientId, setClientSecret, setEnableServiceAccounts, setNullCredentialEnabled, setOAuthCredentialFile, setProxyAddress, setServiceAccountEmail, setServiceAccountJsonKeyFile, setServiceAccountKeyFile, setTransportType, shouldUseMetadataService, toStringpublic HadoopCredentialConfiguration(java.util.List<java.lang.String> prefixes)
public static HadoopCredentialConfiguration.Builder newBuilder()
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration entries)
setConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2018. All rights reserved.