-
Notifications
You must be signed in to change notification settings - Fork 14
Improve ECFSSLContextFactory.getInstance0(String,String) #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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