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


Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
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
 
Methods inherited from class org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
getAuthenticator, getConf, setAuthenticator, setConf
 
Methods inherited from class java.lang.Object
equals, 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 © 2014 The Apache Software Foundation. All rights reserved.