Class SslHandshakeCompletionEvent

  • All Implemented Interfaces:
    ProtocolEvent

    public final class SslHandshakeCompletionEvent
    extends SslCompletionEvent
    Event that is fired once the SSL handshake is complete, which may be because it was successful or there was an error.
    • Constructor Detail

      • SslHandshakeCompletionEvent

        public SslHandshakeCompletionEvent​(SSLSession session,
                                           String applicationProtocol)
        Creates a new event that indicates a successful handshake.
        Parameters:
        session - the SSLSession for the handshake.
        applicationProtocol - the application protocol that was selected (if any).
      • SslHandshakeCompletionEvent

        public SslHandshakeCompletionEvent​(SSLSession session,
                                           String applicationProtocol,
                                           Throwable cause)
        Creates a new event that indicates an unsuccessful handshake.
        Parameters:
        session - the SSLSession for the handshake.
        applicationProtocol - the application protocol that was selected (if any).
        cause - the cause of the failure.
      • SslHandshakeCompletionEvent

        public SslHandshakeCompletionEvent​(Throwable cause)
        Creates a new event that indicates an unsuccessful handshake.
        Parameters:
        cause - the cause of the failure.
    • Method Detail

      • applicationProtocol

        public String applicationProtocol()
        Return the application protocol that was selected or null if none was selected.
        Returns:
        the application protocol.