org.littleshoot.dnssec4j
Class VerifiedSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by org.littleshoot.dnssec4j.VerifiedSocketFactory

public class VerifiedSocketFactory
extends SocketFactory

SocketFactory that wraps another delegate SocketFactory and intercepts all factory calls to verify the DNSSEC records of hosts before creating sockets.


Constructor Summary
VerifiedSocketFactory(SocketFactory delegate)
           
 
Method Summary
 Socket createSocket(InetAddress host, int port)
           
 Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localHost, int localPort)
           
 
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifiedSocketFactory

public VerifiedSocketFactory(SocketFactory delegate)
Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(InetAddress host,
                           int port)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localHost,
                           int localPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(InetAddress host,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException


Copyright © 2011-2013 LittleShoot. All Rights Reserved.