Lines Matching refs:name

37  * [RFC2459] When the subjectAltName extension contains a domain name service
38 * label, the domain name MUST be stored in the dNSName (an IA5String).
39 * The name MUST be in the "preferred name syntax," as specified by RFC
42 * addition, while the string " " is a legal domain name, subjectAltName
52 private String name;
65 name = derValue.getIA5String();
69 * Create the DNSName object with the specified name.
71 * @param name the DNSName.
72 * @throws IOException if the name is not a valid DNSName subjectAltName
74 public DNSName(String name) throws IOException {
75 if (name == null || name.length() == 0)
76 throw new IOException("DNS name must not be null");
77 if (name.indexOf(' ') != -1)
79 if (name.charAt(0) == '.' || name.charAt(name.length() -1) == '.')
84 for (int endIndex,startIndex=0; startIndex < name.length(); startIndex = endIndex+1) {
85 endIndex = name.indexOf('.', startIndex);
87 endIndex = name.length();
93 if (alpha.indexOf(name.charAt(startIndex)) < 0)
97 char x = name.charAt(nonStartIndex);
102 this.name = name;
113 * Return the actual name value of the GeneralName.
116 return name;
120 * Encode the DNS name into the DerOutputStream.
126 out.putIA5String(name);
130 * Convert the name into user readable string.
133 return ("DNSName: " + name);
137 * Compares this name with another, for equality.
153 return name.equalsIgnoreCase(other.name);
162 return name.toUpperCase().hashCode();
166 * Return type of constraint inputName places on this name:<ul>
167 * <li>NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain).
168 * <li>NAME_MATCH = 0: input name matches name.
169 * <li>NAME_NARROWS = 1: input name narrows name (is lower in the naming subtree)
170 * <li>NAME_WIDENS = 2: input name widens name (is higher in the naming subtree)
171 * <li>NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type.
175 * RFC2459: DNS name restrictions are expressed as foo.bar.com. Any subdomain
176 * satisfies the name constraint. For example, www.foo.bar.com would
179 * draft-ietf-pkix-new-part1-00.txt: DNS name restrictions are expressed as foo.bar.com.
180 * Any DNS name that
181 * can be constructed by simply adding to the left hand side of the name
182 * satisfies the name constraint. For example, www.foo.bar.com would
186 * domain name comparisons for all present domain functions are done in a
192 * @throws UnsupportedOperationException if name is not exact match, but narrowing and widening are
193 * not supported for this name type.
204 String thisName = name.toLowerCase(Locale.ENGLISH);
227 * Return subtree depth of this name for purposes of determining
229 * path lengths in name subtrees.
231 * @returns distance of name from root
232 * @throws UnsupportedOperationException if not supported for this name type
235 String subtree=name;