code: @Override
      public boolean check(String[] pHostOrAddresses) {
          if (allowedHostsSet == null) {
              return true;
          }
          for (String addr : pHostOrAddresses) {
              if (allowedHostsSet.contains(addr)) {
                  return true;
              }
              if (allowedSubnetsSet != null && IP_PATTERN.matcher(addr).matches()) {
                  for (String subnet : allowedSubnetsSet) {
                      if (IpChecker.matches(subnet, addr)) {
                          return true;
                      }
                  }
              }
          }
          return false;
      }
docs: Check for one or more hosts.
  
  @param pHostOrAddresses array of host names or IP addresses
  @return true if one of the given name passes this checker.