diwakergupta/jetcd — pull request #10 by and-hom (2013-12-17 09:39:13+00:00)
Title: Created trusted http client for SSL/TLS and client cert authentication.

* Added TrustedApacheClient for retrofit (delegation pattern on ApacheClient using custom params for HttpClient)
* Added method newTrustedInstance for EtcdClientFactory
* Added new constructor for EtcdClientImpl with custom retrofit client
* Added test for https and all necessary certificates

Why do I override retrofit.client.Client in the jetcd project, not in retrofit? Retrofit already supports SSL/TLS Auth in ApacheClient, but it requires quitely preconfigured apache http client. So, we have to configure apache http client somewhere, for example, in factory class. But there is too much code to initialize ssl apache http client properly. So, I think It well be good idea to hide all this work in the client proxy class TrustedApacheClient and use simple call new TrustedApacheClient(credentials). Credentials object contains client key, client cert and ca cert.