Package io.servicetalk.transport.api
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 TypeMethodDescriptionvoid
handshakeComplete
(SSLSession sslSession) Callback when the handshake is complete successfully.void
handshakeFailed
(Throwable cause) Callback when the handshake is failed.
-
Method Details
-
handshakeFailed
Callback when the handshake is failed.- Parameters:
cause
- the cause of handshake failure
-
handshakeComplete
Callback when the handshake is complete successfully.- Parameters:
sslSession
- theSSLSession
for this connection
-