Package | Description |
---|---|
org.apache.hadoop.hive.ql.parse | |
org.apache.hadoop.hive.ql.security.authorization | |
org.apache.hadoop.hive.ql.security.authorization.plugin |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
org.apache.hadoop.hive.ql.security.authorization.plugin.fallback | |
org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd | |
org.apache.hive.service.cli.operation |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
TableMask.applyRowFilterAndColumnMasking(List<HivePrivilegeObject> privObjs) |
Modifier and Type | Method and Description |
---|---|
String |
TableMask.create(HivePrivilegeObject privObject,
MaskAndFilterInfo maskAndFilterInfo) |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
TableMask.applyRowFilterAndColumnMasking(List<HivePrivilegeObject> privObjs) |
Modifier and Type | Method and Description |
---|---|
static HivePrivilegeObject |
AuthorizationUtils.getHiveObjectRef(HiveObjectRef privObj) |
HivePrivilegeObject |
DefaultHiveAuthorizationTranslator.getHivePrivilegeObject(PrivilegeObjectDesc privSubjectDesc) |
Modifier and Type | Method and Description |
---|---|
static HiveObjectRef |
AuthorizationUtils.getThriftHiveObjectRef(HivePrivilegeObject privObj)
Convert thrift HiveObjectRef to plugin HivePrivilegeObject
|
Modifier and Type | Method and Description |
---|---|
static HivePrivilegeObject |
HivePrivilegeObject.createHivePrivilegeObject(List<String> cmdParams)
Create HivePrivilegeObject of type
HivePrivilegeObjectType.COMMAND_PARAMS |
HivePrivilegeObject |
HiveAuthorizationTranslator.getHivePrivilegeObject(PrivilegeObjectDesc privObject) |
HivePrivilegeObject |
HivePrivilegeInfo.getObject() |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
HiveAuthorizationValidator.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveV1Authorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveAuthorizerImpl.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveAuthorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs)
applyRowFilterAndColumnMasking is called once for each table in a query.
|
List<HivePrivilegeObject> |
HiveAuthorizationValidator.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context)
see HiveAuthorizer.filterListCmdObjects
|
List<HivePrivilegeObject> |
HiveV1Authorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
HiveAuthorizerImpl.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
HiveAuthorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context)
Filter out any objects that should not be shown to the user, from the list of
tables or databases coming from a 'show tables' or 'show databases' command
|
static List<HivePrivilegeObject> |
HivePrivilegeObjectUtils.getHivePrivDbObjects(List<String> dbList)
Convert list of dbnames into list of HivePrivilegeObject
|
Modifier and Type | Method and Description |
---|---|
int |
HivePrivilegeObject.compareTo(HivePrivilegeObject o) |
void |
HiveV1Authorizer.grantPrivileges(List<HivePrincipal> principals,
List<HivePrivilege> privileges,
HivePrivilegeObject privObject,
HivePrincipal grantor,
boolean grantOption) |
void |
HiveAccessController.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
HiveAuthorizerImpl.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
HiveAuthorizer.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption)
Grant privileges for principals on the object
|
void |
HiveV1Authorizer.revokePrivileges(List<HivePrincipal> principals,
List<HivePrivilege> privileges,
HivePrivilegeObject privObject,
HivePrincipal grantor,
boolean grantOption) |
void |
HiveAccessController.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
HiveAuthorizerImpl.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
HiveAuthorizer.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption)
Revoke privileges for principals on the object
|
List<HivePrivilegeInfo> |
HiveV1Authorizer.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
List<HivePrivilegeInfo> |
HiveAccessController.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
List<HivePrivilegeInfo> |
HiveAuthorizerImpl.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
List<HivePrivilegeInfo> |
HiveAuthorizer.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj)
Show privileges for given principal on given object
|
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
HiveAuthorizationValidator.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveV1Authorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveAuthorizerImpl.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
HiveAuthorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs)
applyRowFilterAndColumnMasking is called once for each table in a query.
|
void |
HiveAuthorizationValidator.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context)
see HiveAuthorizer.checkPrivileges
|
void |
HiveAuthorizationValidator.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context)
see HiveAuthorizer.checkPrivileges
|
void |
HiveV1Authorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputsHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
void |
HiveV1Authorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputsHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
void |
HiveAuthorizerImpl.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
void |
HiveAuthorizerImpl.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
void |
HiveAuthorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputsHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context)
Check if user has privileges to do this action on these objects
|
void |
HiveAuthorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputsHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context)
Check if user has privileges to do this action on these objects
|
List<HivePrivilegeObject> |
HiveAuthorizationValidator.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context)
see HiveAuthorizer.filterListCmdObjects
|
List<HivePrivilegeObject> |
HiveV1Authorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
HiveAuthorizerImpl.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
HiveAuthorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context)
Filter out any objects that should not be shown to the user, from the list of
tables or databases coming from a 'show tables' or 'show databases' command
|
Constructor and Description |
---|
HivePrivilegeInfo(HivePrincipal principal,
HivePrivilege privilege,
HivePrivilegeObject object,
HivePrincipal grantorPrincipal,
boolean grantOption,
int grantTime) |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
FallbackHiveAuthorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
FallbackHiveAuthorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
Modifier and Type | Method and Description |
---|---|
void |
FallbackHiveAuthorizer.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
FallbackHiveAuthorizer.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
List<HivePrivilegeInfo> |
FallbackHiveAuthorizer.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
FallbackHiveAuthorizer.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
void |
FallbackHiveAuthorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
void |
FallbackHiveAuthorizer.checkPrivileges(HiveOperationType hiveOpType,
List<HivePrivilegeObject> inputHObjs,
List<HivePrivilegeObject> outputHObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
FallbackHiveAuthorizer.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
Modifier and Type | Method and Description |
---|---|
List<HivePrivilegeObject> |
DummyHiveAuthorizationValidator.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
SQLStdHiveAuthorizationValidator.applyRowFilterAndColumnMasking(HiveAuthzContext context,
List<HivePrivilegeObject> privObjs) |
List<HivePrivilegeObject> |
DummyHiveAuthorizationValidator.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
List<HivePrivilegeObject> |
SQLStdHiveAuthorizationValidator.filterListCmdObjects(List<HivePrivilegeObject> listObjs,
HiveAuthzContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
SQLAuthorizationUtils.addMissingPrivMsg(Collection<SQLPrivTypeGrant> missingPrivs,
HivePrivilegeObject hivePrivObject,
List<String> deniedMessages) |
static List<HiveObjectPrivilege> |
RevokePrivAuthUtils.authorizeAndGetRevokePrivileges(List<HivePrincipal> principals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
boolean grantOption,
IMetaStoreClient mClient,
String userName) |
static RequiredPrivileges |
Operation2Privilege.getRequiredPrivs(HiveOperationType hiveOpType,
HivePrivilegeObject hObj,
Operation2Privilege.IOType ioType)
Get the privileges required for this operation (hiveOpType) on hive object (hObj) when its
IOType is ioType.
|
void |
SQLStdHiveAccessController.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
SQLStdHiveAccessControllerWrapper.grantPrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
SQLStdHiveAccessController.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
void |
SQLStdHiveAccessControllerWrapper.revokePrivileges(List<HivePrincipal> hivePrincipals,
List<HivePrivilege> hivePrivileges,
HivePrivilegeObject hivePrivObject,
HivePrincipal grantorPrincipal,
boolean grantOption) |
List<HivePrivilegeInfo> |
SQLStdHiveAccessController.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
List<HivePrivilegeInfo> |
SQLStdHiveAccessControllerWrapper.showPrivileges(HivePrincipal principal,
HivePrivilegeObject privObj) |
Modifier and Type | Method and Description |
---|---|
protected void |
MetadataOperation.authorizeMetaGets(HiveOperationType opType,
List<HivePrivilegeObject> inpObjs) |
protected void |
MetadataOperation.authorizeMetaGets(HiveOperationType opType,
List<HivePrivilegeObject> inpObjs,
String cmdString) |
Copyright © 2021 The Apache Software Foundation. All rights reserved.