public class DefaultTcpNioSSLConnectionSupport extends AbstractTcpConnectionSupport implements TcpNioConnectionSupport
TcpNioConnectionSupport
for SSL
NIO connections.Constructor and Description |
---|
DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport)
Create an instance with host verification enabled.
|
DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport,
boolean sslVerifyHost)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
TcpNioConnection |
createNewConnection(SocketChannel socketChannel,
boolean server,
boolean lookupHost,
ApplicationEventPublisher applicationEventPublisher,
String connectionFactoryName)
Creates a
TcpNioSSLConnection . |
protected void |
postProcessSSLEngine(SSLEngine sslEngine)
Subclasses can post-process the ssl engine (set properties).
|
getPushbackBufferSize, isPushbackCapable, setPushbackBufferSize, setPushbackCapable
public DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport)
sslContextSupport
- the ssl context support.public DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport, boolean sslVerifyHost)
sslContextSupport
- the ssl context support.sslVerifyHost
- true to verify the host during handshake.public TcpNioConnection createNewConnection(SocketChannel socketChannel, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, String connectionFactoryName)
TcpNioSSLConnection
.createNewConnection
in interface TcpNioConnectionSupport
socketChannel
- the SocketChannel.server
- true if this connection is a server connection.lookupHost
- true if hostname lookup should be performed, otherwise the connection will
be identified using the ip address.applicationEventPublisher
- the publisher to which OPEN, CLOSE and EXCEPTION events will
be sent; may be null if event publishing is not required.connectionFactoryName
- the name of the connection factory creating this connection; used
during event publishing, may be null, in which case "unknown" will be used.protected void postProcessSSLEngine(SSLEngine sslEngine)
sslEngine
- the engine.