Lines Matching defs:dns
165 // according to RFC 3280 p.34 the DNS name should be
352 // DNS name [2] that can be constructed by simply adding
355 String dns = (String) name;
357 if (dns.equalsIgnoreCase(_dns)) {
360 return _dns.toLowerCase(Locale.US).endsWith("." + dns.toLowerCase(Locale.US));
554 * Checks the correctness of the string representation of DNS name as
561 public static void checkDNS(String dns) throws IOException {
562 String string = dns.toLowerCase(Locale.US);
570 throw new IOException("DNS name must start with a letter: " + dns);
577 throw new IOException("Incorrect DNS name: " + dns);
583 throw new IOException("Incorrect DNS name: label ends with '-': " + dns);