- public void onError(final String error);
- }
-
- /** SSLSocketFactory that uses {@link TotallyInsecureTrustManager} */
- private static final SSLSocketFactory DEFAULT_SOCKET_FACTORY;
- static{
- try{
- final SSLContext sslcontext=SSLContext.getInstance("TLS");
- sslcontext.init(null, new X509TrustManager[]{new TotallyInsecureTrustManager()}, null);
- DEFAULT_SOCKET_FACTORY=sslcontext.getSocketFactory();
- } catch(final Exception e){
- Log.wtf("HttpCallExecutableRunnable", "Cannot create SSLSocketFactory", e);
- throw new AssertionError("Log.wtf did not terminate the process");
- }