@Override
  public final List<String> filterTableNames(String s, String s1, List<String> list) throws MetaException {
    LOG.debug("==> HiveMetaStoreAuthorizer.filterTableNames()");

    List<String> filteredTableNames = null;
    if (list != null) {
      String dbName = getDBName(s1);
      TableFilterContext tableFilterContext = new TableFilterContext(dbName, list);
      HiveMetaStoreAuthzInfo hiveMetaStoreAuthzInfo = tableFilterContext.getAuthzContext();
      filteredTableNames = filterTableNames(hiveMetaStoreAuthzInfo, dbName, list);
      if (CollectionUtils.isEmpty(filteredTableNames)) {
        filteredTableNames = Collections.emptyList();
      }
    }

    LOG.debug("<== HiveMetaStoreAuthorizer.filterTableNames() : " + filteredTableNames);

    return filteredTableNames;
  }
HiveMetaStoreAuthorizer :  Do authorization checks on MetaStore Events in MetaStorePreEventListener
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java