java.lang.Object | |
↳ | sun.security.x509.URIName |
This class implements the URIName as required by the GeneralNames ASN.1 object.
[RFC3280] When the subjectAltName extension contains a URI, the name MUST be stored in the uniformResourceIdentifier (an IA5String). The name MUST be a non-relative URL, and MUST follow the URL syntax and encoding rules specified in [RFC 1738]. The name must include both a scheme (e.g., "http" or "ftp") and a scheme-specific-part. The scheme- specific-part must include a fully qualified domain name or IP address as the host.
As specified in [RFC 1738], the scheme name is not case-sensitive (e.g., "http" is equivalent to "HTTP"). The host part is also not case-sensitive, but other components of the scheme-specific-part may be case-sensitive. When comparing URIs, conforming implementations MUST compare the scheme and host without regard to case, but assume the remainder of the scheme-specific-part is case sensitive.
[RFC1738] In general, URLs are written as follows:
A URL contains the name of the scheme being used (:
While the syntax for the rest of the URL may vary depending on the particular scheme selected, URL schemes that involve the direct use of an IP-based protocol to a specified host on the Internet use a common syntax for the scheme-specific data:
//[RFC2732] specifies that an IPv6 address contained inside a URL must be enclosed in square brackets (to allow distinguishing the colons that separate IPv6 components from the colons that separate scheme-specific data.: @ : /
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create the URIName object from the passed encoded Der value.
| |||||||||||
Create the URIName object with the specified name.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return type of constraint inputName places on this name:
| |||||||||||
Encode the URI name into the DerOutputStream.
| |||||||||||
Compares this name with another, for equality.
| |||||||||||
Return the host name or IP address portion of the URIName
| |||||||||||
Return the host object type; if host name is a
DNSName, then this host object does not include any
initial "." on the name.
| |||||||||||
Returns this URI name.
| |||||||||||
Return the scheme name portion of a URIName
| |||||||||||
Return the type of the GeneralName.
| |||||||||||
Returns the URIName as a java.net.URI object
| |||||||||||
Returns the hash code value for this object.
| |||||||||||
Create the URIName object with the specified name constraint.
| |||||||||||
Return subtree depth of this name for purposes of determining
NameConstraints minimum and maximum bounds and for calculating
path lengths in name subtrees.
| |||||||||||
Convert the name into user readable string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create the URIName object from the passed encoded Der value.
derValue | the encoded DER URIName. |
---|
IOException | on error. |
---|
Create the URIName object with the specified name.
name | the URIName. |
---|
IOException | if name is not a proper URIName |
---|
Return type of constraint inputName places on this name:
RFC3280: For URIs, the constraint applies to the host part of the name. The constraint may specify a host or a domain. Examples would be "foo.bar.com"; and ".xyz.com". When the the constraint begins with a period, it may be expanded with one or more subdomains. That is, the constraint ".xyz.com" is satisfied by both abc.xyz.com and abc.def.xyz.com. However, the constraint ".xyz.com" is not satisfied by "xyz.com". When the constraint does not begin with a period, it specifies a host.
inputName | to be checked for being constrained |
---|
UnsupportedOperationException | if name is not exact match, but narrowing and widening are not supported for this name type. |
---|
Encode the URI name into the DerOutputStream.
out | the DER stream to encode the URIName to. |
---|
IOException | on encoding errors. |
---|
Compares this name with another, for equality.
obj | the reference object with which to compare. |
---|
Return the host object type; if host name is a DNSName, then this host object does not include any initial "." on the name.
Return the type of the GeneralName.
Returns the hash code value for this object.
Create the URIName object with the specified name constraint. URI name constraints syntax is different than SubjectAltNames, etc. See 4.2.1.11 of RFC 3280.
value | the URI name constraint |
---|
IOException | if name is not a proper URI name constraint |
---|
Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees.
UnsupportedOperationException | if not supported for this name type |
---|
Convert the name into user readable string.