Package org.eclipse.jetty.io.ssl
Interface SslHandshakeListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
JDK9ServerALPNProcessor
Implementations of this interface are notified of TLS handshake events.
Similar to HandshakeCompletedListener
, but for SSLEngine
.
Typical usage if to add instances of this class as beans to a server connector, or to a client connector.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The event object carrying information about TLS handshake events. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
handshakeFailed
(SslHandshakeListener.Event event, Throwable failure) Callback method invoked when the TLS handshake fails.default void
Callback method invoked when the TLS handshake succeeds.
-
Method Details
-
handshakeSucceeded
Callback method invoked when the TLS handshake succeeds.
- Parameters:
event
- the event object carrying information about the TLS handshake event- Throws:
SSLException
- if any error happen during handshake
-
handshakeFailed
Callback method invoked when the TLS handshake fails.
- Parameters:
event
- the event object carrying information about the TLS handshake eventfailure
- the failure that caused the TLS handshake to fail
-