Class SSLHandlerG1

java.lang.Object
org.apache.mina.filter.ssl.SslHandler
org.apache.mina.filter.ssl.SSLHandlerG1

class SSLHandlerG1 extends SslHandler
Default implementation of SSLHandler

The concurrency model is enforced using a simple mutex to ensure that the state of the decode buffer and closure is concurrent with the SSLEngine.

  • Field Details

    • MAX_QUEUED_MESSAGES

      protected static final int MAX_QUEUED_MESSAGES
      Maximum number of queued messages waiting for encoding
      See Also:
    • MAX_UNACK_MESSAGES

      protected static final int MAX_UNACK_MESSAGES
      Maximum number of messages waiting acknowledgement
      See Also:
    • ENABLE_SOFT_CLOSURE

      protected static final boolean ENABLE_SOFT_CLOSURE
      Writes the SSL Closure messages after a close request
      See Also:
    • ENABLE_FAST_HANDSHAKE

      protected static final boolean ENABLE_FAST_HANDSHAKE
      Enable aggregation of handshake messages
      See Also:
    • ENABLE_ASYNC_TASKS

      protected static final boolean ENABLE_ASYNC_TASKS
      Enable asynchronous tasks. Default to false.
      See Also:
    • mHandshakeComplete

      protected boolean mHandshakeComplete
      Indicates whether the first handshake was completed
    • mHandshakeStarted

      protected boolean mHandshakeStarted
      Indicated whether the first handshake was started
    • mOutboundClosing

      protected boolean mOutboundClosing
      Indicates that the outbound is closing
    • mOutboundLinger

      protected boolean mOutboundLinger
      Indicates that previously queued messages should be written before closing
    • mReceiveThread

      protected volatile Thread mReceiveThread
      Holds the decoder thread reference; used for recursion detection introduced by a delegated task
    • mWriteQueue

      protected final Deque<EncryptedWriteRequest> mWriteQueue
      Encoded buffers ready for processing upstream
    • mReceiveQueue

      protected final Deque<IoBuffer> mReceiveQueue
      Decoded buffers ready for processing downstream
    • mEventQueue

      protected final Deque<FilterEvent> mEventQueue
      Pending filter events for dispatching
    • mPendingError

      protected SSLException mPendingError
      Captured error state
  • Constructor Details

    • SSLHandlerG1

      public SSLHandlerG1(SSLEngine sslEngine, Executor executor, IoSession session)
      Instantiates a new handler
      Parameters:
      sslEngine - The SSLEngine instance
      executor - The executor instance to use to process tasks
      session - The session to handle
  • Method Details