protected TrustManager[] createTrustAllManagers() {
    return new TrustManager[]{

        new X509TrustManager() {

          @Override
          public X509Certificate[] getAcceptedIssuers() {
            return null;
          }

          @Override
          public void checkClientTrusted(X509Certificate[] certs, String authType) {
          }

          @Override
          public void checkServerTrusted(X509Certificate[] certs, String authType) {
          }
        }};
  }
protected TrustManager [ ] createTrustAllManagers ( ) { return new TrustManager [ ] { new X509TrustManager ( ) { @ Override public X509Certificate [ ] getAcceptedIssuers ( ) { return null ; } @ Override public void checkClientTrusted ( X509Certificate [ ] certs , String authType ) { } @ Override public void checkServerTrusted ( X509Certificate [ ] certs , String authType ) { } } } ; }
Creates an array of trust managers which trusts all X509 certificates.

@return the trust manager [ ]