akka.io
Class SslTlsSupport

java.lang.Object
  extended by akka.io.PipelineStage<HasLogging,Tcp.Command,Tcp.Command,Tcp.Event,Tcp.Event>
      extended by akka.io.SslTlsSupport

public class SslTlsSupport
extends PipelineStage<HasLogging,Tcp.Command,Tcp.Command,Tcp.Event,Tcp.Event>

This pipeline stage implements SSL / TLS support, using an externally configured SSLEngine. It operates on the level of Tcp.Event and Tcp.Command messages, which means that it will typically be one of the lowest stages in a protocol stack. Since SSLEngine relies on contiguous transmission of a data stream you will need to handle backpressure from the TCP connection actor, for example by using a BackpressureBuffer underneath the SSL stage.

Each instance of this stage has a scratch ByteBuffer of approx. 18kiB allocated which is used by the SSLEngine.


Constructor Summary
SslTlsSupport(javax.net.ssl.SSLEngine engine)
           
 
Method Summary
 java.lang.Object apply(HasLogging ctx)
           
 
Methods inherited from class akka.io.PipelineStage
combine, sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SslTlsSupport

public SslTlsSupport(javax.net.ssl.SSLEngine engine)
Method Detail

apply

public java.lang.Object apply(HasLogging ctx)