Class DefaultTcpNioSSLConnectionSupport
java.lang.Object
org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupport
org.springframework.integration.ip.tcp.connection.DefaultTcpNioSSLConnectionSupport
- All Implemented Interfaces:
TcpNioConnectionSupport
public class DefaultTcpNioSSLConnectionSupport
extends AbstractTcpConnectionSupport
implements TcpNioConnectionSupport
Implementation of
TcpNioConnectionSupport for SSL NIO connections.- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport) Create an instance with host verification enabled.DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport, boolean sslVerifyHost) Create an instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateNewConnection(SocketChannel socketChannel, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, @Nullable String connectionFactoryName) Creates aTcpNioSSLConnection.protected voidpostProcessSSLEngine(SSLEngine sslEngine) Subclasses can post-process the ssl engine (set properties).Methods inherited from class org.springframework.integration.ip.tcp.connection.AbstractTcpConnectionSupport
getPushbackBufferSize, isPushbackCapable, setPushbackBufferSize, setPushbackCapable
-
Constructor Details
-
DefaultTcpNioSSLConnectionSupport
Create an instance with host verification enabled.- Parameters:
sslContextSupport- the ssl context support.
-
DefaultTcpNioSSLConnectionSupport
public DefaultTcpNioSSLConnectionSupport(TcpSSLContextSupport sslContextSupport, boolean sslVerifyHost) Create an instance.- Parameters:
sslContextSupport- the ssl context support.sslVerifyHost- true to verify the host during handshake.- Since:
- 5.0.8
-
-
Method Details
-
createNewConnection
public TcpNioConnection createNewConnection(SocketChannel socketChannel, boolean server, boolean lookupHost, @Nullable ApplicationEventPublisher applicationEventPublisher, @Nullable String connectionFactoryName) Creates aTcpNioSSLConnection.- Specified by:
createNewConnectionin interfaceTcpNioConnectionSupport- Parameters:
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.- Returns:
- the TcpNioConnection
-
postProcessSSLEngine
Subclasses can post-process the ssl engine (set properties).- Parameters:
sslEngine- the engine.- Since:
- 4.3.7
-