code: public static boolean verify(final Set<String> nameSet, final X509Certificate cert)  {
  		if (null!=nameSet && !nameSet.isEmpty()) {
  			return nameSet.stream().filter(name->verify(name, cert)).findAny().isPresent();
  		}
  		
  		return false;
  	}
docs: Verify a set of names as per HTTPS (RFC 2818)
  
  @param nameSet - a set of names from the config file
  @param cert - the server certificate
  @return - whether any name in the name set matches names in the cert