|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.security.authorization.AuthorizationUtils
@InterfaceAudience.LimitedPrivate(value="Sql standard authorization plugin") public class AuthorizationUtils
Utility code shared by hive internal code and sql standard authorization plugin implementation
| Constructor Summary | |
|---|---|
AuthorizationUtils()
|
|
| Method Summary | |
|---|---|
static HivePrincipal.HivePrincipalType |
getHivePrincipalType(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 HiveObjectRef |
getThriftHiveObjectRef(HivePrivilegeObject privObj)
Convert thrift HiveObjectRef to plugin HivePrivilegeObject |
static HiveObjectType |
getThriftHiveObjType(HivePrivilegeObject.HivePrivilegeObjectType type)
Convert plugin privilege object type to thrift type |
static PrincipalType |
getThriftPrincipalType(HivePrincipal.HivePrincipalType type)
Convert authorization plugin principal type to thrift principal type |
static PrivilegeGrantInfo |
getThriftPrivilegeGrantInfo(HivePrivilege privilege,
HivePrincipal grantorPrincipal,
boolean grantOption,
int grantTime)
Get thrift privilege grant info |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationUtils()
| Method Detail |
|---|
public static HivePrincipal.HivePrincipalType getHivePrincipalType(PrincipalType type)
throws HiveException
type - - thrift principal type
HiveExceptionpublic static HivePrivilegeObject.HivePrivilegeObjectType getHivePrivilegeObjectType(Entity.Type type)
type - - thrift object type
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||