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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLAuthorizationUtils

public class SQLAuthorizationUtils
extends Object


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
SQLAuthorizationUtils()
           
 
Method Summary
static void assertNoMissingPrivilege(Collection<SQLPrivTypeGrant> missingPrivs, HivePrincipal hivePrincipal, HivePrivilegeObject hivePrivObject)
           
static RequiredPrivileges getPrivilegesFromFS(org.apache.hadoop.fs.Path filePath, HiveConf conf, String userName)
          Map permissions for this uri to SQL Standard privileges
static void validatePrivileges(List<HivePrivilege> hivePrivileges)
          Check if the privileges are acceptable for SQL Standard authorization implementation
 
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

SQLAuthorizationUtils

public SQLAuthorizationUtils()
Method Detail

validatePrivileges

public static void validatePrivileges(List<HivePrivilege> hivePrivileges)
                               throws HiveAuthzPluginException
Check if the privileges are acceptable for SQL Standard authorization implementation

Parameters:
hivePrivileges -
Throws:
HiveAuthzPluginException

assertNoMissingPrivilege

public static void assertNoMissingPrivilege(Collection<SQLPrivTypeGrant> missingPrivs,
                                            HivePrincipal hivePrincipal,
                                            HivePrivilegeObject hivePrivObject)
                                     throws HiveAccessControlException
Throws:
HiveAccessControlException

getPrivilegesFromFS

public static RequiredPrivileges getPrivilegesFromFS(org.apache.hadoop.fs.Path filePath,
                                                     HiveConf conf,
                                                     String userName)
                                              throws HiveAuthzPluginException
Map permissions for this uri to SQL Standard privileges

Parameters:
filePath -
conf -
userName -
Returns:
Throws:
HiveAuthzPluginException


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