Class OptionalSslConnectionFactory

All Implemented Interfaces:
ConnectionFactory, ConnectionFactory.Detecting, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

@Deprecated public class OptionalSslConnectionFactory extends DetectorConnectionFactory
Deprecated.

A ConnectionFactory whose connections detect whether the first bytes are TLS bytes and upgrades to either a TLS connection or to another configurable connection.

  • Constructor Details

    • OptionalSslConnectionFactory

      public OptionalSslConnectionFactory(SslConnectionFactory sslConnectionFactory, String nextProtocol)
      Deprecated.

      Creates a new ConnectionFactory whose connections can upgrade to TLS or another protocol.

      Parameters:
      sslConnectionFactory - The SslConnectionFactory to use if the first bytes are TLS
      nextProtocol - the protocol of the ConnectionFactory to use if the first bytes are not TLS, or null to explicitly handle the non-TLS case