Interface SslHandshakeListener

  • All Superinterfaces:
    java.util.EventListener
    All Known Implementing Classes:
    JDK9ServerALPNProcessor

    public interface SslHandshakeListener
    extends java.util.EventListener

    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.

    • Method Detail

      • handshakeSucceeded

        default void handshakeSucceeded​(SslHandshakeListener.Event event)
                                 throws javax.net.ssl.SSLException

        Callback method invoked when the TLS handshake succeeds.

        Parameters:
        event - the event object carrying information about the TLS handshake event
        Throws:
        javax.net.ssl.SSLException
      • handshakeFailed

        default void handshakeFailed​(SslHandshakeListener.Event event,
                                     java.lang.Throwable failure)

        Callback method invoked when the TLS handshake fails.

        Parameters:
        event - the event object carrying information about the TLS handshake event
        failure - the failure that caused the TLS handshake to fail