-
Notifications
You must be signed in to change notification settings - Fork 90
Integration
obra edited this page Feb 4, 2011
·
3 revisions
It consists of three easy steps:
... android.library.reference.1=../MemorizingTrustManager
... <activity android:name="de.duenndns.ssl.MemorizingActivity" /> </application> </manifest>
// register MemorizingTrustManager for HTTPS SSLContext sc = SSLContext.getInstance("TLS"); sc.init(null, MemorizingTrustManager.getInstanceList(this), new java.security.SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());