private void parse(Configuration conf, String configProperty) {
    String aclsStr = conf.get(configProperty);
    if (aclsStr == null || aclsStr.isEmpty()) {
      return;
    }
    if (isWildCard(aclsStr)) {
      allowedUsers.add(WILDCARD_ACL_VALUE);
      return;
    }

    final String[] splits = splitPattern.split(aclsStr);
    int counter = -1;
    String userListStr = null;
    String groupListStr = null;
    for (String s : splits) {
      if (s.isEmpty()) {
        if (userListStr != null) {
          continue;
        }
      }
      ++counter;
      if (counter == 0) {
        userListStr = s;
      } else if (counter == 1) {
        groupListStr = s;
      } else {
        LOG.warn("Invalid configuration specified for " + configProperty
            + ", ignoring configured ACLs, value=" + aclsStr);
        return;
      }
    }

    if (userListStr == null) {
      return;
    }
    if (userListStr.length() >= 1) {
      allowedUsers.addAll(
          org.apache.hadoop.util.StringUtils.getTrimmedStringCollection(userListStr));
    }
    if (groupListStr != null && groupListStr.length() >= 1) {
      allowedGroups.addAll(
          org.apache.hadoop.util.StringUtils.getTrimmedStringCollection(groupListStr));
    }
  }
Parser for extracting ACL information from Configs
common/src/java/org/apache/hive/common/util/ACLConfigurationParser.java