Code example for CertificateException

Methods: printStackTrace

0
								public void checkClientTrusted(X509Certificate[] certs, String authType) {
									try { 
										origTrustmanager.checkClientTrusted(certs, authType);
									} catch (CertificateException e) {
										// TODO Auto-generated catch block 
										e.printStackTrace();
									} 
								} 
 
								public void checkServerTrusted(X509Certificate[] certs, String authType) {
									try { 
										origTrustmanager.checkServerTrusted(certs, authType);
									} catch (CertificateException e) {
										// TODO Auto-generated catch block 
										e.printStackTrace();
									} 
								} 
							} 
					}; 
 
Contextual code suggestions in your IDE  Get Codota for Java