Interface TransportSecurityLayer

All Known Subinterfaces:
ProtocolIOSession
All Known Implementing Classes:
InternalDataChannel

public interface TransportSecurityLayer
TLS capable session layer interface.
Since:
5.0
  • Method Details

    • startTls

      void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) throws UnsupportedOperationException
      Starts TLS session over an existing network connection with the given SSL context. NamedEndpoint details are applicable for client side connections and are used for host name verification, when supported by the SSL engine.
      Parameters:
      sslContext - SSL context to be used for this session.
      endpoint - optional endpoint details for outgoing client side connections.
      sslBufferMode - SSL buffer management mode.
      initializer - SSL session initialization callback.
      verifier - SSL session verification callback.
      handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.
      Throws:
      UnsupportedOperationException
    • startTls

      default void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) throws UnsupportedOperationException
      Starts TLS session over an existing network connection with the given SSL context. NamedEndpoint details are applicable for client side connections and are used for host name verification, when supported by the SSL engine.
      Parameters:
      sslContext - SSL context to be used for this session.
      endpoint - optional endpoint details for outgoing client side connections.
      sslBufferMode - SSL buffer management mode.
      initializer - SSL session initialization callback.
      verifier - SSL session verification callback.
      handshakeTimeout - the timeout to use while performing the TLS handshake; may be null.
      Throws:
      UnsupportedOperationException
      Since:
      5.2
    • getTlsDetails

      TlsDetails getTlsDetails()
      Returns details of a fully established TLS session.
      Returns:
      TLS session details.