Top Description Fields Constructors Methods
io.netty5.handler.ssl

public final Class SslHandshakeCompletionEvent

extends SslCompletionEvent
Class Inheritance
Imports
javax.net.ssl.SSLSession

Event that is fired once the SSL handshake is complete, which may be because it was successful or there was an error.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
SslHandshakeCompletionEvent(SSLSession
the SSLSession for the handshake.
session
,
String
the application protocol that was selected (if any).
applicationProtocol
)

Creates a new event that indicates a successful handshake.

public
SslHandshakeCompletionEvent(SSLSession
the SSLSession for the handshake.
session
,
String
the application protocol that was selected (if any).
applicationProtocol
,
Throwable
the cause of the failure.
cause
)

Creates a new event that indicates an unsuccessful handshake.

public
SslHandshakeCompletionEvent(Throwable
the cause of the failure.
cause
)

Creates a new event that indicates an unsuccessful handshake.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the application protocol.
applicationProtocol
()

Return the application protocol that was selected or null if none was selected.

public SSLSession

Returns:

the session.
session
()

Overrides io.netty5.handler.ssl.SslCompletionEvent.session.

Returns the SSLSession in case of isSuccess() to be true, null in case of a failure.
Inherited from io.netty5.handler.ssl.SslCompletionEvent:
causetoString

Field Detail

applicationProtocolback to summary
private final String applicationProtocol

Constructor Detail

SslHandshakeCompletionEventback to summary
public SslHandshakeCompletionEvent(SSLSession session, String applicationProtocol)

Creates a new event that indicates a successful handshake.

Parameters
session:SSLSession

the SSLSession for the handshake.

applicationProtocol:String

the application protocol that was selected (if any).

SslHandshakeCompletionEventback to summary
public SslHandshakeCompletionEvent(SSLSession session, String applicationProtocol, Throwable cause)

Creates a new event that indicates an unsuccessful handshake.

Parameters
session:SSLSession

the SSLSession for the handshake.

applicationProtocol:String

the application protocol that was selected (if any).

cause:Throwable

the cause of the failure.

SslHandshakeCompletionEventback to summary
public SslHandshakeCompletionEvent(Throwable cause)

Creates a new event that indicates an unsuccessful handshake.

Parameters
cause:Throwable

the cause of the failure.

Method Detail

applicationProtocolback to summary
public String applicationProtocol()

Return the application protocol that was selected or null if none was selected.

Returns:String

the application protocol.

sessionback to summary
public SSLSession session()

Overrides io.netty5.handler.ssl.SslCompletionEvent.session.

Returns the SSLSession in case of isSuccess() to be true, null in case of a failure.

Returns:SSLSession

the session.

Annotations
@Override