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 TypeMethodDescriptiondefault voidhandshakeComplete(SSLSession sslSession) Callback when the handshake completes successfully.default voidhandshakeFailed(Throwable cause) Callback when the handshake fails.
-
Method Details
-
handshakeFailed
Callback when the handshake fails.- Parameters:
cause- the cause of the handshake failure
-
handshakeComplete
Callback when the handshake completes successfully.- Parameters:
sslSession- theSSLSessionfor this connection
-