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 Details

    • doWrite

      protected void doWrite(ByteBuffer plainText) throws IOException
      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 class TcpNioConnection.ChannelOutputStream
      Throws:
      IOException