private void validateDnsNames(Set dnsNameSet) throws PolicyException {
  Iterator dnsNames=dnsNameSet.iterator();
  while (dnsNames.hasNext()) {
    String dnsName=(String)dnsNames.next();
    validateDnsName(dnsName);
    dnsList.add(dnsName.toLowerCase());
  }
}

private void validateDnsNames ( Set dnsNameSet ) throws PolicyException { Iterator dnsNames = dnsNameSet . iterator ( ) ; while ( dnsNames . hasNext ( ) ) { String dnsName = ( String ) dnsNames . next ( ) ; validateDnsName ( dnsName ) ; dnsList . add ( dnsName . toLowerCase ( ) ) ; } }
validates if the value of property dns_name is correct and adheres to the expected format
