Package io.servicetalk.transport.api
Interface ConnectionObserver.SecurityHandshakeObserver
-
- All Known Implementing Classes:
NoopTransportObserver.NoopSecurityHandshakeObserver
- Enclosing interface:
- ConnectionObserver
public static interface ConnectionObserver.SecurityHandshakeObserverAn observer interface that provides visibility into security handshake events.Either
handshakeComplete(SSLSession)orhandshakeFailed(Throwable)will be invoked to signal successful or failed completion of the handshake.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandshakeComplete(javax.net.ssl.SSLSession sslSession)Callback when the handshake is complete successfully.voidhandshakeFailed(java.lang.Throwable cause)Callback when the handshake is failed.
-
-
-
Method Detail
-
handshakeFailed
void handshakeFailed(java.lang.Throwable cause)
Callback when the handshake is failed.- Parameters:
cause- the cause of handshake failure
-
handshakeComplete
void handshakeComplete(javax.net.ssl.SSLSession sslSession)
Callback when the handshake is complete successfully.- Parameters:
sslSession- theSSLSessionfor this connection
-
-