December 2013
Intermediate to advanced
350 pages
8h 1m
English
In this recipe, we are going to leverage the great work of the folks at the Guardian Project to enhance the validation of SSL connections made by our app. Specifically, we are going to make use of StrongTrustManager.
OnionKit is distributed as an Android library project. Before we start this recipe, download the OnionKit library from the GitHub page (https://github.com/guardianproject/OnionKit).
Then, extract and add to your project as you would add any other Android library project.
Let's get started!
StrongTustManager class couldn't be simpler. It is just a case of swapping out your HttpClient implementation. Hence, change the following code:public HttpResponse ...
Read now
Unlock full access