@InterfaceAudience.LimitedPrivate(value="Sql standard authorization plugin") public class AuthorizationUtils extends Object
| Constructor and Description |
|---|
AuthorizationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HivePrivilegeObject.HivePrivObjectActionType |
getActionType(Entity privObject) |
static HivePrivilegeObject |
getHiveObjectRef(org.apache.hadoop.hive.metastore.api.HiveObjectRef privObj) |
static HivePrincipal |
getHivePrincipal(String name,
org.apache.hadoop.hive.metastore.api.PrincipalType type) |
static List<HivePrincipal> |
getHivePrincipals(List<PrincipalDesc> principals,
HiveAuthorizationTranslator trans) |
static HivePrincipal.HivePrincipalType |
getHivePrincipalType(org.apache.hadoop.hive.metastore.api.PrincipalType type)
Convert thrift principal type to authorization plugin principal type
|
static HivePrivilegeObject.HivePrivilegeObjectType |
getHivePrivilegeObjectType(Entity.Type type)
Convert thrift object type to hive authorization plugin object type
|
static List<HivePrivilege> |
getHivePrivileges(List<PrivilegeDesc> privileges,
HiveAuthorizationTranslator trans) |
static List<HivePrivilegeInfo> |
getPrivilegeInfos(List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> privs) |
static HivePrivilegeObject.HivePrivilegeObjectType |
getPrivObjectType(PrivilegeObjectDesc privSubjectDesc) |
static org.apache.hadoop.hive.metastore.api.HiveObjectRef |
getThriftHiveObjectRef(HivePrivilegeObject privObj)
Convert thrift HiveObjectRef to plugin HivePrivilegeObject
|
static org.apache.hadoop.hive.metastore.api.HiveObjectType |
getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type)
Convert plugin privilege object type to thrift type
|
static org.apache.hadoop.hive.metastore.api.PrincipalType |
getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
Convert authorization plugin principal type to thrift principal type
|
static org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo |
getThriftPrivilegeGrantInfo(HivePrivilege privilege,
HivePrincipal grantorPrincipal,
boolean grantOption,
int grantTime)
Get thrift privilege grant info
|
public static HivePrincipal.HivePrincipalType getHivePrincipalType(org.apache.hadoop.hive.metastore.api.PrincipalType type) throws HiveException
type - - thrift principal typeHiveExceptionpublic static HivePrivilegeObject.HivePrivilegeObjectType getHivePrivilegeObjectType(Entity.Type type)
type - - thrift object typepublic static HivePrivilegeObject.HivePrivilegeObjectType getPrivObjectType(PrivilegeObjectDesc privSubjectDesc)
public static List<HivePrivilege> getHivePrivileges(List<PrivilegeDesc> privileges, HiveAuthorizationTranslator trans)
public static List<HivePrincipal> getHivePrincipals(List<PrincipalDesc> principals, HiveAuthorizationTranslator trans) throws HiveException
HiveExceptionpublic static HivePrincipal getHivePrincipal(String name, org.apache.hadoop.hive.metastore.api.PrincipalType type) throws HiveException
HiveExceptionpublic static List<HivePrivilegeInfo> getPrivilegeInfos(List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> privs) throws HiveException
HiveExceptionpublic static HivePrivilegeObject getHiveObjectRef(org.apache.hadoop.hive.metastore.api.HiveObjectRef privObj) throws HiveException
HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.PrincipalType getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
type - HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo getThriftPrivilegeGrantInfo(HivePrivilege privilege, HivePrincipal grantorPrincipal, boolean grantOption, int grantTime) throws HiveException
privilege - grantorPrincipal - grantOption - grantTime - HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.HiveObjectType getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type) throws HiveException
type - HiveExceptionpublic static org.apache.hadoop.hive.metastore.api.HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException
privObj - HiveExceptionpublic static HivePrivilegeObject.HivePrivObjectActionType getActionType(Entity privObject)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.