@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 typeHiveException
public 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
HiveException
public static HivePrincipal getHivePrincipal(PrincipalDesc principal) throws HiveException
HiveException
public static HivePrincipal getHivePrincipal(String name, PrincipalType type) throws HiveException
HiveException
public static List<HivePrivilegeInfo> getPrivilegeInfos(List<HiveObjectPrivilege> privs) throws HiveException
HiveException
public static HivePrivilegeObject getHiveObjectRef(HiveObjectRef privObj) throws HiveException
HiveException
public static HivePrivilegeObject getHivePrivilegeObject(PrivilegeObjectDesc privSubjectDesc) throws HiveException
HiveException
public static PrincipalType getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
type
- HiveException
public static PrivilegeGrantInfo getThriftPrivilegeGrantInfo(HivePrivilege privilege, HivePrincipal grantorPrincipal, boolean grantOption, int grantTime) throws HiveException
privilege
- grantorPrincipal
- grantOption
- grantTime
- HiveException
public static HiveObjectType getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type) throws HiveException
type
- HiveException
public static HiveObjectRef getThriftHiveObjectRef(HivePrivilegeObject privObj) throws HiveException
privObj
- HiveException
public static HivePrivilegeObject.HivePrivObjectActionType getActionType(Entity privObject)
Copyright © 2017 The Apache Software Foundation. All rights reserved.