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 HiveAuthenticationProvider
public java.util.List<java.lang.String> getGroupNames()
getGroupNames
in interface HiveAuthenticationProvider
public Configuration getConf()
public void setConf(Configuration config)
public void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
HiveMetastoreAuthenticationProvider
setMetaStoreHandler
in interface HiveMetastoreAuthenticationProvider
public void destroy() throws HiveException
destroy
in interface HiveAuthenticationProvider
HiveException
Copyright © 2012 The Apache Software Foundation