private static TrustManager [ ] getNonValidatingTrustManagers ( String [ ] acceptedIssuers ) { X509TrustManager x509TrustManager = new CustomX509TrustManager ( acceptedIssuers ) ; return new TrustManager [ ] { x509TrustManager } ; }
we want to allow self - signed certificates .