protected static class SecurityUtil.QualifiedHostResolver
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
QualifiedHostResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
java.net.InetAddress |
getByName(java.lang.String host) |
Create an InetAddress with a fully qualified hostname of the given
hostname.
|
public java.net.InetAddress getByName(java.lang.String host)
throws java.net.UnknownHostException
InetAddress.getCanonicalHostName() will fully qualify the
hostname, but it always return the A record whereas the given hostname
may be a CNAME.host - a hostname or ip addressjava.net.UnknownHostException - if host does not existCopyright © 2008–2025 Apache Software Foundation. All rights reserved.