public class VerifiedAddressFactory extends Object
| Constructor and Description |
|---|
VerifiedAddressFactory() |
| Modifier and Type | Method and Description |
|---|---|
static InetSocketAddress |
newInetSocketAddress(String host,
int port)
Creates a new InetSocketAddress, verifying the host with DNSSEC if
configured to do so.
|
static InetSocketAddress |
newInetSocketAddress(String host,
int port,
boolean useDnsSec)
Creates a new InetSocketAddress, verifying the host with DNSSEC if
configured to do so.
|
static InetAddress |
newVerifiedInetAddress(String host,
boolean useDnsSec)
Creates a new InetSocket, verifying the host with DNSSEC if
configured to do so.
|
public static InetSocketAddress newInetSocketAddress(String host, int port) throws UnknownHostException
host - The host.port - The port.UnknownHostException - If the host cannot be resolved.public static InetSocketAddress newInetSocketAddress(String host, int port, boolean useDnsSec) throws UnknownHostException
host - The host.port - The port.useDnsSec - Whether or not to use DNSSEC.UnknownHostException - If the host cannot be resolved.public static InetAddress newVerifiedInetAddress(String host, boolean useDnsSec) throws UnknownHostException
host - The host.useDnsSec - Whether or not to use DNSSEC.InetAddress.UnknownHostException - If the host cannot be resolved.Copyright © 2011-2013 LittleShoot. All Rights Reserved.