org.apache.hadoop.hive.ql.security.authorization
Class DefaultHiveMetastoreAuthorizationProvider

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
      extended by org.apache.hadoop.hive.ql.security.authorization.BitSetCheckedAuthorizationProvider
          extended by org.apache.hadoop.hive.ql.security.authorization.DefaultHiveMetastoreAuthorizationProvider
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, HiveAuthorizationProvider, HiveMetastoreAuthorizationProvider

public class DefaultHiveMetastoreAuthorizationProvider
extends BitSetCheckedAuthorizationProvider
implements HiveMetastoreAuthorizationProvider


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
HiveAuthorizationProviderBase.HiveProxy
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
authenticator, hive_db, LOG
 
Constructor Summary
DefaultHiveMetastoreAuthorizationProvider()
           
 
Method Summary
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
          Allows invoker of HiveMetaStoreAuthorizationProvider to send in a hive metastore handler that can be used to make calls to test whether or not authorizations can/will succeed.
 
Methods inherited from class org.apache.hadoop.hive.ql.security.authorization.BitSetCheckedAuthorizationProvider
authorize, authorize, authorize, authorize, authorize, authorizePrivileges, authorizeUserPriv
 
Methods inherited from class org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
getAuthenticator, getConf, setAuthenticator, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider
authorize, authorize, authorize, authorize, authorize, getAuthenticator, setAuthenticator
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

DefaultHiveMetastoreAuthorizationProvider

public DefaultHiveMetastoreAuthorizationProvider()
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
          throws HiveException
Specified by:
init in interface HiveAuthorizationProvider
Throws:
HiveException

setMetaStoreHandler

public void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
Description copied from interface: HiveMetastoreAuthorizationProvider
Allows invoker of HiveMetaStoreAuthorizationProvider to send in a hive metastore handler that can be used to make calls to test whether or not authorizations can/will succeed. Intended to be called before any of the authorize methods are called.

Specified by:
setMetaStoreHandler in interface HiveMetastoreAuthorizationProvider


Copyright © 2011 The Apache Software Foundation