org.littleshoot.dnssec4j
Class VerifiedAddressFactory

java.lang.Object
  extended by org.littleshoot.dnssec4j.VerifiedAddressFactory

public class VerifiedAddressFactory
extends Object

Class for creating addresses. This class is DNSSEC-aware, so will attempt to use DNSSEC if configured to do so.


Constructor Summary
VerifiedAddressFactory()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifiedAddressFactory

public VerifiedAddressFactory()
Method Detail

newInetSocketAddress

public static InetSocketAddress newInetSocketAddress(String host,
                                                     int port)
                                              throws UnknownHostException
Creates a new InetSocketAddress, verifying the host with DNSSEC if configured to do so.

Parameters:
host - The host.
port - The port.
Returns:
The endpoint.
Throws:
UnknownHostException - If the host cannot be resolved.

newInetSocketAddress

public static InetSocketAddress newInetSocketAddress(String host,
                                                     int port,
                                                     boolean useDnsSec)
                                              throws UnknownHostException
Creates a new InetSocketAddress, verifying the host with DNSSEC if configured to do so.

Parameters:
host - The host.
port - The port.
useDnsSec - Whether or not to use DNSSEC.
Returns:
The endpoint.
Throws:
UnknownHostException - If the host cannot be resolved.

newVerifiedInetAddress

public static InetAddress newVerifiedInetAddress(String host,
                                                 boolean useDnsSec)
                                          throws UnknownHostException
Creates a new InetSocket, verifying the host with DNSSEC if configured to do so.

Parameters:
host - The host.
useDnsSec - Whether or not to use DNSSEC.
Returns:
The InetAddress.
Throws:
UnknownHostException - If the host cannot be resolved.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.