private void checkPrivileges(final HiveMetaStoreAuthzInfo authzContext, HiveAuthorizer authorizer)
      throws HiveAccessControlException, HiveAuthzPluginException {
    LOG.debug("==> HiveMetaStoreAuthorizer.checkPrivileges(): authzContext=" + authzContext + ", authorizer=" + authorizer);

    HiveOperationType         hiveOpType       = authzContext.getOperationType();
    List<HivePrivilegeObject> inputHObjs       = authzContext.getInputHObjs();
    List<HivePrivilegeObject> outputHObjs      = authzContext.getOutputHObjs();
    HiveAuthzContext          hiveAuthzContext = authzContext.getHiveAuthzContext();

    authorizer.checkPrivileges(hiveOpType, inputHObjs, outputHObjs, hiveAuthzContext);

    LOG.debug("<== HiveMetaStoreAuthorizer.checkPrivileges(): authzContext=" + authzContext + ", authorizer=" + authorizer);
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java