Class TcpNioSSLConnection.SSLChannelOutputStream
java.lang.Object
java.io.OutputStream
org.springframework.integration.ip.tcp.connection.TcpNioConnection.ChannelOutputStream
org.springframework.integration.ip.tcp.connection.TcpNioSSLConnection.SSLChannelOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
TcpNioSSLConnection
protected final class TcpNioSSLConnection.SSLChannelOutputStream
extends TcpNioConnection.ChannelOutputStream
Subclass of
TcpNioConnection.ChannelOutputStream
to handle encryption
of outbound data. Wraps an instance of the superclass, which is invoked to
send to encrypted data to the SocketChannel.- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan, Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doWrite
(ByteBuffer plainText) Encrypt the plaintText buffer and writes it to the SocketChannel.Methods inherited from class org.springframework.integration.ip.tcp.connection.TcpNioConnection.ChannelOutputStream
close, write, write, write
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Method Details
-
doWrite
Encrypt the plaintText buffer and writes it to the SocketChannel. Will participate in SSL handshaking as necessary. For very large data, the SSL packets will be limited by the engine's buffer sizes and multiple writes will be necessary.- Overrides:
doWrite
in classTcpNioConnection.ChannelOutputStream
- Throws:
IOException
-