private static class TestHBaseConfiguration.ReflectiveCredentialProviderClient extends Object
Modifier and Type | Field and Description |
---|---|
private static Method |
createCredentialEntryMethod |
static String |
CREDENTIAL_PROVIDER_PATH |
private static Method |
flushMethod |
private static Method |
getCredentialEntryMethod |
private static Method |
getCredentialMethod |
private static Method |
getProvidersMethod |
static String |
HADOOP_CRED_ENTRY_CLASS_NAME |
static String |
HADOOP_CRED_ENTRY_GET_CREDENTIAL_METHOD_NAME |
static String |
HADOOP_CRED_PROVIDER_CLASS_NAME |
static String |
HADOOP_CRED_PROVIDER_CREATE_CREDENTIAL_ENTRY_METHOD_NAME |
static String |
HADOOP_CRED_PROVIDER_FACTORY_CLASS_NAME |
static String |
HADOOP_CRED_PROVIDER_FACTORY_GET_PROVIDERS_METHOD_NAME |
static String |
HADOOP_CRED_PROVIDER_FLUSH_METHOD_NAME |
static String |
HADOOP_CRED_PROVIDER_GET_ALIASES_METHOD_NAME |
static String |
HADOOP_CRED_PROVIDER_GET_CREDENTIAL_ENTRY_METHOD_NAME |
private static Boolean |
hadoopClassesAvailable |
private static Object |
hadoopCredProviderFactory |
Modifier | Constructor and Description |
---|---|
private |
ReflectiveCredentialProviderClient() |
Modifier and Type | Method and Description |
---|---|
void |
createEntry(org.apache.hadoop.conf.Configuration conf,
String name,
char[] credential)
Create a CredentialEntry using the configured Providers.
|
private void |
createEntryInProvider(Object credentialProvider,
String name,
char[] credential)
Create a CredentialEntry with the give name and credential in the credentialProvider.
|
protected List<Object> |
getCredentialProviders(org.apache.hadoop.conf.Configuration conf)
Wrapper to fetch the configured
List<CredentialProvider> s. |
private boolean |
isHadoopCredentialProviderAvailable()
Determine if we can load the necessary CredentialProvider classes.
|
private Method |
loadMethod(Class<?> clz,
String name,
Class<?>... classes) |
public static final String HADOOP_CRED_PROVIDER_FACTORY_CLASS_NAME
public static final String HADOOP_CRED_PROVIDER_FACTORY_GET_PROVIDERS_METHOD_NAME
public static final String HADOOP_CRED_PROVIDER_CLASS_NAME
public static final String HADOOP_CRED_PROVIDER_GET_CREDENTIAL_ENTRY_METHOD_NAME
public static final String HADOOP_CRED_PROVIDER_GET_ALIASES_METHOD_NAME
public static final String HADOOP_CRED_PROVIDER_CREATE_CREDENTIAL_ENTRY_METHOD_NAME
public static final String HADOOP_CRED_PROVIDER_FLUSH_METHOD_NAME
public static final String HADOOP_CRED_ENTRY_CLASS_NAME
public static final String HADOOP_CRED_ENTRY_GET_CREDENTIAL_METHOD_NAME
public static final String CREDENTIAL_PROVIDER_PATH
private static Object hadoopCredProviderFactory
private static Method getProvidersMethod
private static Method getCredentialEntryMethod
private static Method getCredentialMethod
private static Method createCredentialEntryMethod
private static Method flushMethod
private static Boolean hadoopClassesAvailable
private ReflectiveCredentialProviderClient()
private boolean isHadoopCredentialProviderAvailable()
private Method loadMethod(Class<?> clz, String name, Class<?>... classes) throws Exception
Exception
protected List<Object> getCredentialProviders(org.apache.hadoop.conf.Configuration conf)
List<CredentialProvider>
s. n * Configuration with
GENERAL_SECURITY_CREDENTIAL_PROVIDER_PATHS definedpublic void createEntry(org.apache.hadoop.conf.Configuration conf, String name, char[] credential) throws Exception
Exception
private void createEntryInProvider(Object credentialProvider, String name, char[] credential) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.