I am using Koushik Dutta's Ion networking library for Android. I need to override SSL checks for debugging purposes. I've found out how to set my own SSL context and TrustManager using:
Ion.getDefault(context).getHttpClient().getSSLSocketMiddleware().setSSLContext(mySslContext);
Ion.getDefault(context).getHttpClient().getSSLSocketMiddleware().setTrustManagers(myTrustManager);
but I can't figure out how to pass in my own HostnameVerifier. With HttpsUrlConnection it was as simple as
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier(myHostNameVerifier);
Has anyone overridden SSL using ion? Any ideas?