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 and Description |
|---|
VerifiedSocketFactory(SocketFactory delegate) |
| Modifier and Type | Method and Description |
|---|---|
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) |
createSocket, getDefaultpublic VerifiedSocketFactory(SocketFactory delegate)
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionCopyright © 2011-2013 LittleShoot. All Rights Reserved.