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, getDefault
public VerifiedSocketFactory(SocketFactory delegate)
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
Copyright © 2011–2018 LittleShoot. All rights reserved.