Top Description Methods
org.apache.hc.core5.reactor.ssl

public Interface SSLSessionVerifier

Imports
javax.net.ssl.SSLEngine, .SSLException, org.apache.hc.core5.net.NamedEndpoint

Callback interface that can be used to customize TLS/SSL session verification.
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public TlsDetails
verify(NamedEndpoint
the endpoint name for a client side session or null for a server side session.
endpoint
,
SSLEngine
SSL engine.
sslEngine
)

Triggered when the SSL connection has been established and initial SSL handshake has been successfully completed.

Method Detail

verifyback to summary
public TlsDetails verify(NamedEndpoint endpoint, SSLEngine sslEngine) throws SSLException

Triggered when the SSL connection has been established and initial SSL handshake has been successfully completed. Custom handlers can use this callback to verify properties of the SSLEngine. For instance this would be the right place to enforce SSL cipher strength, validate certificate chain and do hostname checks.

Parameters
endpoint:NamedEndpoint

the endpoint name for a client side session or null for a server side session.

sslEngine:SSLEngine

SSL engine.

Exceptions
SSLException:
if case of SSL protocol error.