I need to configure the SSLEngine created in 
org.apache.http.impl.nio.reactor.SSLIOSession used by 
org.apache.http.impl.nio.SSLServerIOEventDispatch to control client auth using 
setNeedClientAuth.

Extending SSLServerIOEventDispatch, the implementation of 
createSSLIOSession(IOSession, SSLContext, SSLIOSessionHandler) can be 
overridden but in order to accomplish the aforesaid, it would be better to 
reuse SSLIOSession and tune its SSLEngine based on some used defined tunables. 
One way to enable this would be to add a new method in SSLIOSession:

protected SSLEngine getSSLEngine() 
{
    return(this.sslEngine);
}

This enables extending SSLIOSession to tune SSLEngine as per requirements and 
hence use the full configurablilty of SSLEngine and use this extended 
SSLIOSession in an extended SSLServerIOEventDispatch. Can we have this method 
in a future release?

-J.D.



      

Reply via email to