org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd
Class SQLStdHiveAuthorizationValidator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizationValidator
All Implemented Interfaces:
HiveAuthorizationValidator

public class SQLStdHiveAuthorizationValidator
extends Object
implements HiveAuthorizationValidator


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
SQLStdHiveAuthorizationValidator(HiveMetastoreClientFactory metastoreClientFactory, HiveConf conf, HiveAuthenticationProvider authenticator, SQLStdHiveAccessController privController)
           
 
Method Summary
 void checkPrivileges(HiveOperationType hiveOpType, List<HivePrivilegeObject> inputHObjs, List<HivePrivilegeObject> outputHObjs)
          Check if current user has privileges to perform given operation type hiveOpType on the given input and output objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

SQLStdHiveAuthorizationValidator

public SQLStdHiveAuthorizationValidator(HiveMetastoreClientFactory metastoreClientFactory,
                                        HiveConf conf,
                                        HiveAuthenticationProvider authenticator,
                                        SQLStdHiveAccessController privController)
Method Detail

checkPrivileges

public void checkPrivileges(HiveOperationType hiveOpType,
                            List<HivePrivilegeObject> inputHObjs,
                            List<HivePrivilegeObject> outputHObjs)
                     throws HiveAuthzPluginException,
                            HiveAccessControlException
Description copied from interface: HiveAuthorizationValidator
Check if current user has privileges to perform given operation type hiveOpType on the given input and output objects

Specified by:
checkPrivileges in interface HiveAuthorizationValidator
Throws:
HiveAuthzPluginException
HiveAccessControlException


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