You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Marcus Crafter <cr...@managesoft.com> on 2003/10/01 18:16:17 UTC

EasySSLProtocolSocketFactory and IBM JRE 1.4.1

Hi All,

Hope all is going well!

I've just noticed that the EasySSLProtocolSocketFactory class in
httpclient contrib imports some specific classes from the Sun JSSE
implementation, which fails when using the IBM 1.4.1 JRE due to package
name conflicts.

eg. Sun JSSE has com.sun.net.ssl.SSLContext where IBM JSSE has
com.ibm.net.ssl.SSLContext

Is there anyway to get this code to work without importing the classes
themselves, perhaps rather with interfaces, etc? I gave it a go but
didn't have any luck - but then again I'm not a JSSE guru so I was only
playing in reality - any thoughts there at all?

If not, I guess the alternative is to detect the JSSE implementation at
runtime and use reflection and proxy classes to return the right one? 

Any other suggestions that fix up the problem? Any info much
appreciated.

Cheers,

Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org