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)
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 void
handshakeComplete(javax.net.ssl.SSLSession sslSession)
Callback when the handshake is complete successfully.void
handshakeFailed(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
- theSSLSession
for this connection
-
-