Code example for SslErrorHandler

Methods: cancel

0
            } 
        }); 
        setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int id) {
            	dialog.dismiss();
            	handler.cancel();
            } 
        }); 
	} 
 
	/** 
     * Formats the certificate date to a properly localized date string. 
     * @return Properly localized version of the certificate date string and 
     * the "" if it fails to localize. 
     *  
     * Method replicated from android.net.http.SslCertificate 
     * Mirror: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/net/http/SslCertificate.java 
     *  
     */ 
    private String formatCertificateDate(Context context, Date certificateDate) {
        if (certificateDate == null) {