@Deprecated class SSLSetupHandlerAdaptor extends java.lang.Object implements SSLSetupHandler
Modifier and Type | Field and Description |
---|---|
private SSLSetupHandler |
handler
Deprecated.
|
private HttpParams |
params
Deprecated.
|
Constructor and Description |
---|
SSLSetupHandlerAdaptor(SSLSetupHandler handler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
initalize(javax.net.ssl.SSLEngine sslengine)
Deprecated.
Triggered when the SSL connection is being initialized.
|
void |
setParams(HttpParams params)
Deprecated.
|
void |
verify(IOSession iosession,
javax.net.ssl.SSLSession sslsession)
Deprecated.
Triggered when the SSL connection has been established and initial SSL
handshake has been successfully completed.
|
private final SSLSetupHandler handler
private HttpParams params
public SSLSetupHandlerAdaptor(SSLSetupHandler handler)
public void initalize(javax.net.ssl.SSLEngine sslengine) throws javax.net.ssl.SSLException
SSLSetupHandler
SSLEngine
used to establish the SSL session.initalize
in interface SSLSetupHandler
sslengine
- the SSL engine.javax.net.ssl.SSLException
- if case of SSL protocol error.public void verify(IOSession iosession, javax.net.ssl.SSLSession sslsession) throws javax.net.ssl.SSLException
SSLSetupHandler
SSLSession
.
For instance this would be the right place to enforce SSL cipher
strength, validate certificate chain and do hostname checks.verify
in interface SSLSetupHandler
iosession
- the underlying IOSession for the SSL connection.sslsession
- newly created SSL session.javax.net.ssl.SSLException
- if case of SSL protocol error.public void setParams(HttpParams params)