[RFC5280] When the subjectAltName extension contains a domain name system label, the domain name MUST be stored in the dNSName (an IA5String). The name MUST be in the "preferred name syntax", as specified by Section 3.5 of [RFC1034] and as modified by Section 2.1 of [RFC1123]. Note that while uppercase and lowercase letters are allowed in domain names, no significance is attached to the case. In addition, while the string " " is a legal domain name, subjectAltName extensions with a dNSName of " " MUST NOT be used. Finally, the use of the DNS representation for Internet mail addresses (subscriber.example.com instead of [email protected]) MUST NOT be used; such identities are to be encoded as rfc822Name.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final HostnameChecker | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: constraint type aboveto be checked for being constrained inputName, boolean whether to match a wildcard in inputName matchWildcard)Return type of constraint inputName places on this name:
|
| public int | constrains(GeneralNameInterface inputName)
Implements sun. Return type of constraint inputName places on this name:
|
| public void | encode(DerOutputStream
the DER stream to encode the DNSName to. out)Implements sun. Encode the DNSName into the DerOutputStream. |
| public boolean | Returns: true iff the names are equivalent according to RFC5280.Overrides java. Compares this name with another, for equality. |
| public String | |
| public int | getType()
Implements sun. Return the type of the GeneralName. |
| public int | Returns: the hash code value for this objectOverrides java. Returns the hash code value for this object. |
| public int | Returns: distance of name from rootImplements sun. Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees. |
| public String |
| DNS_ALLOWED | back to summary |
|---|---|
| private static final String DNS_ALLOWED | |
| HOSTNAME_CHECKER | back to summary |
|---|---|
| private static final HostnameChecker HOSTNAME_CHECKER | |
| name | back to summary |
|---|---|
| private final String name | |
| DNSName | back to summary |
|---|---|
| public DNSName(DerValue derValue) throws IOException Create the DNSName object from the passed encoded Der value.
| |
| DNSName | back to summary |
|---|---|
| public DNSName(String name, boolean allowWildcard) throws IOException Create the DNSName object with the specified name.
| |
| DNSName | back to summary |
|---|---|
| public DNSName(String name) throws IOException Create the DNSName object with the specified name.
| |
| constrains | back to summary |
|---|---|
| public int constrains(GeneralNameInterface inputName, boolean matchWildcard) throws UnsupportedOperationException Return type of constraint inputName places on this name:
RFC5280: For DNS names, restrictions MUST use the DNSName syntax in Section 4.2.1.6. Any DNS name that can be constructed by simply adding zero or more labels to the left-hand side of the name satisfies the name constraint. For example, www.host.example.com would satisfy the constraint but host1.example.com would not. RFC6125: Match wildcard pattern in the input name being constrained, any wildcard in this name will be matched as a literal character. RFC1034: By convention, domain names can be stored with arbitrary case, but domain name comparisons for all present domain functions are done in a case-insensitive manner, assuming an ASCII character set, and a high order zero bit.
| |
| constrains | back to summary |
|---|---|
| public int constrains(GeneralNameInterface inputName) Implements sun. Doc from sun. Return type of constraint inputName places on this name:
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. Encode the DNSName into the DerOutputStream.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares this name with another, for equality.
| |
| getName | back to summary |
|---|---|
| public String getName() Return the actual name value of the GeneralName. | |
| getType | back to summary |
|---|---|
| public int getType() Implements sun. Return the type of the GeneralName. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this object.
| |
| subtreeDepth | back to summary |
|---|---|
| public int subtreeDepth() throws UnsupportedOperationException Implements sun. Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the name into user readable string. | |