public class InjectableDummyAuthenticator extends java.lang.Object implements HiveMetastoreAuthenticationProvider
| Constructor and Description |
|---|
InjectableDummyAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Configuration |
getConf() |
java.util.List<java.lang.String> |
getGroupNames() |
java.lang.String |
getUserName() |
static void |
injectGroupNames(java.util.List<java.lang.String> groups) |
static void |
injectHmapClass(java.lang.Class<? extends HiveMetastoreAuthenticationProvider> clazz) |
static void |
injectMode(boolean mode) |
static void |
injectUserName(java.lang.String user) |
void |
setConf(Configuration config) |
void |
setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
Allows invoker of HiveMetastoreAuthenticationProvider to send in a
hive metastore handler that can be used to provide data for any
authentication that needs to be done.
|
public static void injectHmapClass(java.lang.Class<? extends HiveMetastoreAuthenticationProvider> clazz)
public static void injectUserName(java.lang.String user)
public static void injectGroupNames(java.util.List<java.lang.String> groups)
public static void injectMode(boolean mode)
public java.lang.String getUserName()
getUserName in interface HiveAuthenticationProviderpublic java.util.List<java.lang.String> getGroupNames()
getGroupNames in interface HiveAuthenticationProviderpublic Configuration getConf()
public void setConf(Configuration config)
public void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
HiveMetastoreAuthenticationProvidersetMetaStoreHandler in interface HiveMetastoreAuthenticationProviderpublic void destroy()
throws HiveException
destroy in interface HiveAuthenticationProviderHiveExceptionCopyright © 2012 The Apache Software Foundation