@Override
    public void checkPrivileges(HiveOperationType hiveOpType, List<HivePrivilegeObject> inputHObjs,
        List<HivePrivilegeObject> outputHObjs, HiveAuthzContext context)
        throws HiveAuthzPluginException, HiveAccessControlException {
      if (!allowActions) {
        throw new HiveAccessControlException(DENIED_ERR);
      }
    }
HiveAuthorizationValidator that allows/disallows actions based on
allowActions boolean value
itests/hive-unit/src/test/java/org/apache/hive/jdbc/authorization/TestJdbcMetadataApiAuth.java