Improve ECFSSLContextFactory.getInstance0(String,String)#231
Improve ECFSSLContextFactory.getInstance0(String,String)#231merks wants to merge 1 commit intoeclipse-ecf:masterfrom
Conversation
- Modify the behavior so that getInstance0 returns the SSLContext.getDefault() instance if that instance is the one for the specified protocol and for the specified named provider. eclipse-platform/eclipse.platform#1690
|
Can one of the admins verify this patch? |
|
I think this is not exactly the right solution. There is a distinction between
So the call path With eclipse-platform/eclipse.platform#1690 we uncover this discrepancy, because the guarantee (*) above is undefined:
So to sum up,
|
|
I introduced the SSLContextFactory osgi service (currently created and configures in ECF core activation) in order to try to get ECF providers away from existing complexities and insecurities wrt SSLContext.getDefault(), SSLContext.setDefault(SSLContext), and SSLContext.getInstance(). e.g. #174 The intention was that as OSGi services are dynamic (defined at start/runtime) rather than statically defined (i.e. SSLContext.getDefault()/getInstance()/setDefault). That it could be configured dynamically in Eclipse (e.g. on startup) or any other OSGi environment. FWIW, I had very little input or interaction with the original authors of ECFSSLContextFactory (from IBM at the time) and so can't be much help wrt how/why/use cases driving them other than support of early jvm support of https....which was just getting established. |


eclipse-platform/eclipse.platform#1690