- } else {\r
-\r
- // We aren't validating certificates, so create a trust manager that does\r
- // not validate certificate chains.\r
- trustAllCerts = new TrustManager[] {new X509TrustManager() {\r
- public X509Certificate[] getAcceptedIssuers() {\r
- return null;\r
- }\r
-\r
- public void checkClientTrusted(X509Certificate[] certs, String authType) {}\r
-\r
- public void checkServerTrusted(X509Certificate[] certs, String authType) {}\r
- }};\r
- }\r
-\r