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
    void
    Callback when the handshake is complete successfully.
    void
    Callback when the handshake is failed.
  • Method Details

    • handshakeFailed

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

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