Interface ConnectionObserver.SecurityHandshakeObserver

All Known Implementing Classes:
NoopTransportObserver.NoopSecurityHandshakeObserver
Enclosing interface:
ConnectionObserver

public static interface ConnectionObserver.SecurityHandshakeObserver
An observer interface that provides visibility into security handshake events.

Either handshakeComplete(SSLSession) or handshakeFailed(Throwable) will be invoked to signal successful or failed completion of the handshake.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Callback when the handshake completes successfully.
    default void
    Callback when the handshake fails.
  • Method Details

    • handshakeFailed

      default void handshakeFailed(Throwable cause)
      Callback when the handshake fails.
      Parameters:
      cause - the cause of the handshake failure
    • handshakeComplete

      default void handshakeComplete(SSLSession sslSession)
      Callback when the handshake completes successfully.
      Parameters:
      sslSession - the SSLSession for this connection