Code example for X509TrustManager

Methods: checkServerTrusted

0
									} 
								} 
 
								public void checkServerTrusted(X509Certificate[] certs, String authType) {
									try { 
										origTrustmanager.checkServerTrusted(certs, authType);
									} catch (CertificateException e) {
										// TODO Auto-generated catch block 
										e.printStackTrace();
									} 
								} 
							} 
					}; 
 
					SSLContext sc = null;
					try { 
						sc = SSLContext.getInstance("TLS");
					} catch (NoSuchAlgorithmException e) {
						// TODO Auto-generated catch block 
						e.printStackTrace();
					}