Class SSLIOSession

java.lang.Object
org.apache.hc.core5.reactor.ssl.SSLIOSession
All Implemented Interfaces:
Closeable, AutoCloseable, ByteChannel, Channel, ReadableByteChannel, WritableByteChannel, SocketModalCloseable, ModalCloseable, IOSession, Identifiable

@Contract(threading=SAFE_CONDITIONAL) @Internal public class SSLIOSession extends Object implements IOSession
SSLIOSession is a decorator class intended to transparently extend an IOSession with transport layer security capabilities based on the SSL/TLS protocol.
Since:
4.2
  • Field Details

  • Constructor Details

    • SSLIOSession

      public SSLIOSession(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, Timeout connectTimeout)
      Creates new instance of SSLIOSession class.
      Parameters:
      targetEndpoint - target endpoint (applicable in client mode only). May be null.
      session - I/O session to be decorated with the TLS/SSL capabilities.
      sslMode - SSL mode (client or server)
      sslContext - SSL context to use for this I/O session.
      sslBufferMode - buffer management mode
      initializer - optional SSL session initializer. May be null.
      verifier - optional SSL session verifier. May be null.
      connectTimeout - timeout to apply for the TLS/SSL handshake. May be null.
      Since:
      5.0
    • SSLIOSession

      public SSLIOSession(NamedEndpoint targetEndpoint, IOSession session, SSLMode sslMode, SSLContext sslContext, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, Callback<SSLIOSession> sessionStartCallback, Callback<SSLIOSession> sessionEndCallback, FutureCallback<SSLSession> resultCallback)
      Creates new instance of SSLIOSession class.
      Parameters:
      targetEndpoint - target endpoint (applicable in client mode only). May be null.
      session - I/O session to be decorated with the TLS/SSL capabilities.
      sslMode - SSL mode (client or server)
      sslContext - SSL context to use for this I/O session.
      sslBufferMode - buffer management mode
      initializer - optional SSL session initializer. May be null.
      verifier - optional SSL session verifier. May be null.
      handshakeTimeout - timeout to apply for the TLS/SSL handshake. May be null.
      resultCallback - result callback. May be null.
      Since:
      5.2
  • Method Details