public class DefaultTcpSocketSupport extends Object implements TcpSocketSupport
TcpSocketSupport
; makes no
changes to sockets.Constructor and Description |
---|
DefaultTcpSocketSupport()
Construct an instance with host verification enabled.
|
DefaultTcpSocketSupport(boolean sslVerifyHost)
Construct an instance with the provided sslVerifyHost.
|
Modifier and Type | Method and Description |
---|---|
void |
postProcessServerSocket(ServerSocket serverSocket)
No-Op.
|
void |
postProcessSocket(Socket socket)
Enables host verification for SSL, if so configured.
|
public DefaultTcpSocketSupport()
public DefaultTcpSocketSupport(boolean sslVerifyHost)
sslVerifyHost
- true to verify host during SSL handshake.public void postProcessServerSocket(ServerSocket serverSocket)
postProcessServerSocket
in interface TcpSocketSupport
serverSocket
- The ServerSocketpublic void postProcessSocket(Socket socket)
postProcessSocket
in interface TcpSocketSupport
socket
- The Socket