org.apache.hadoop.hive.ql.security
Class SessionStateConfigUserAuthenticator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, HiveAuthenticationProvider

public class SessionStateConfigUserAuthenticator
extends Object
implements HiveAuthenticationProvider

Authenticator to be used for testing and debugging. This picks the user.name set in SessionState config, if that is null, it returns value of System property user.name


Constructor Summary
SessionStateConfigUserAuthenticator()
           
 
Method Summary
 void destroy()
           
 org.apache.hadoop.conf.Configuration getConf()
           
 List<String> getGroupNames()
           
 String getUserName()
           
 void setConf(org.apache.hadoop.conf.Configuration arg0)
           
 void setSessionState(SessionState sessionState)
          This function is meant to be used only for hive internal implementations of this interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionStateConfigUserAuthenticator

public SessionStateConfigUserAuthenticator()
Method Detail

getGroupNames

public List<String> getGroupNames()
Specified by:
getGroupNames in interface HiveAuthenticationProvider

getUserName

public String getUserName()
Specified by:
getUserName in interface HiveAuthenticationProvider

destroy

public void destroy()
             throws HiveException
Specified by:
destroy in interface HiveAuthenticationProvider
Throws:
HiveException

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration arg0)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

setSessionState

public void setSessionState(SessionState sessionState)
Description copied from interface: HiveAuthenticationProvider
This function is meant to be used only for hive internal implementations of this interface. SessionState is not a public interface.

Specified by:
setSessionState in interface HiveAuthenticationProvider
Parameters:
sessionState - SessionState that created this instance


Copyright © 2014 The Apache Software Foundation. All rights reserved.