public interface SSLSetupHandler
Modifier and Type | Method and Description |
---|---|
void |
initalize(javax.net.ssl.SSLEngine sslEngine)
Triggered when the SSL connection is being initialized.
|
void |
verify(IOSession ioSession,
javax.net.ssl.SSLSession sslSession)
Triggered when the SSL connection has been established and initial SSL
handshake has been successfully completed.
|
void initalize(javax.net.ssl.SSLEngine sslEngine) throws javax.net.ssl.SSLException
SSLEngine
used to establish the SSL session.sslEngine
- the SSL engine.javax.net.ssl.SSLException
- if case of SSL protocol error.void verify(IOSession ioSession, javax.net.ssl.SSLSession sslSession) throws javax.net.ssl.SSLException
SSLSession
.
For instance this would be the right place to enforce SSL cipher
strength, validate certificate chain and do hostname checks.ioSession
- the underlying IOSession for the SSL connection.sslSession
- newly created SSL session.javax.net.ssl.SSLException
- if case of SSL protocol error.