@InterfaceAudience.LimitedPrivate(value="Sql standard authorization plugin") public class AuthorizationUtils extends Object
| Constructor and Description |
|---|
AuthorizationUtils() |
public static HivePrincipal.HivePrincipalType getHivePrincipalType(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)
public static List<HivePrincipal> getHivePrincipals(List<PrincipalDesc> principals) throws HiveException
HiveExceptionpublic static HivePrincipal getHivePrincipal(PrincipalDesc principal) throws HiveException
HiveExceptionpublic static HivePrincipal getHivePrincipal(String name, PrincipalType type) throws HiveException
HiveExceptionpublic static List<HivePrivilegeInfo> getPrivilegeInfos(List<HiveObjectPrivilege> privs) throws HiveException
HiveExceptionpublic static HivePrivilegeObject getHiveObjectRef(HiveObjectRef privObj) throws HiveException
HiveExceptionpublic static HivePrivilegeObject getHivePrivilegeObject(PrivilegeObjectDesc privSubjectDesc) throws HiveException
HiveExceptionpublic static PrincipalType getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
type - HiveExceptionpublic static PrivilegeGrantInfo getThriftPrivilegeGrantInfo(HivePrivilege privilege, HivePrincipal grantorPrincipal, boolean grantOption, int grantTime) throws HiveException
privilege - grantorPrincipal - grantOption - grantTime - HiveExceptionpublic static HiveObjectType getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type) throws HiveException
type - HiveExceptionpublic static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException
privObj - HiveExceptionpublic static HivePrivilegeObject.HivePrivObjectActionType getActionType(Entity privObject)
Copyright © 2017 The Apache Software Foundation. All rights reserved.