You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							26 lines
						
					
					
						
							630 B
						
					
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							630 B
						
					
					
				| package com.ynxbd.common.config.http;
 | |
| 
 | |
| 
 | |
| import javax.net.ssl.X509TrustManager;
 | |
| import java.security.cert.CertificateException;
 | |
| import java.security.cert.X509Certificate;
 | |
| 
 | |
| /**
 | |
|  * @author Administrator
 | |
|  */
 | |
| public class TrustAnyTrustManager implements X509TrustManager {
 | |
| 
 | |
|     public void checkClientTrusted(X509Certificate[] chain, String authType)
 | |
|             throws CertificateException {
 | |
|     }
 | |
| 
 | |
|     public void checkServerTrusted(X509Certificate[] chain, String authType)
 | |
|             throws CertificateException {
 | |
| 
 | |
|     }
 | |
| 
 | |
|     public X509Certificate[] getAcceptedIssuers() {
 | |
|         return null;
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 |