+ if (isKnowServer) {
+ handler.proceed();
+ } else {
+ // Show a dialog with the certificate info
+ ((AuthenticatorActivity)mContext).showUntrustedCertDialog(x509Certificate, error);
+// SslUntrustedCertDialog dialog = SslUntrustedCertDialog.newInstance(mContext, x509Certificate, error);
+// FragmentManager fm = ((FragmentActivity)mContext).getSupportFragmentManager();
+// FragmentTransaction ft = fm.beginTransaction();
+// dialog.show(ft, DIALOG_UNTRUSTED_CERT);
+ handler.cancel();
+ }