Added adapter in order to be able to set own socket factory.

When working with certificates I needed to change to a particular socket factory.