protected static class SecurityUtil.QualifiedHostResolver extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SecurityUtil.QualifiedHostResolver() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getByName(String host)
Create an InetAddress with a fully qualified hostname of the given
hostname.
|
protected SecurityUtil.QualifiedHostResolver()
public InetAddress getByName(String host) throws 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 addressUnknownHostException - if host does not existCopyright © 2022 Apache Software Foundation. All rights reserved.