private void validateDnsName(String dnsName) throws PolicyException {
  int starIndex=dnsName.indexOf("*");
  if ((starIndex >= 0) && !dnsName.equals("*")) {
    if ((starIndex > 0) || ((starIndex == 0) && ((dnsName.indexOf("*",1) != -1) || (dnsName.charAt(1) != '.')))) {
      String args[]={DNS_NAME,dnsName};
      throw new PolicyException(ResBundleUtils.rbName,"invalid_property_value",args,null);
    }
  }
}

private void validateDnsName ( String dnsName ) throws PolicyException { int starIndex = dnsName . indexOf ( "*" ) ; if ( ( starIndex >= 0 ) && ! dnsName . equals ( "*" ) ) { if ( ( starIndex > 0 ) || ( ( starIndex == 0 ) && ( ( dnsName . indexOf ( "*" , 1 ) != - 1 ) || ( dnsName . charAt ( 1 ) != '.' ) ) ) ) { String args [ ] = { DNS_NAME , dnsName } ; throw new PolicyException ( ResBundleUtils . rbName , "invalid_property_value" , args , null ) ; } } }
validates a dns name for format
