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

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

public class SessionStateUserAuthenticator
extends Object
implements HiveAuthenticationProvider

Authenticator that returns the userName set in SessionState. For use when authorizing with HS2 so that HS2 can set the user for the session through SessionState


Constructor Summary
SessionStateUserAuthenticator()
           
 
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

SessionStateUserAuthenticator

public SessionStateUserAuthenticator()
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.