Code example for X509TrustManager

Methods: getAcceptedIssuers

0
                } 
            } catch (KeyStoreException e) {
                throw new CertificateException(
                        "Certificate cannot be verified; KeyStore Exception: " + e);
            } 
            throw new CertificateException("Certificate domain name does not match " + mHost);
        } 
 
        public X509Certificate[] getAcceptedIssuers() {
            return defaultTrustManager.getAcceptedIssuers();
        } 
 
    } 
 
    static { 
        java.io.InputStream fis = null;
        try { 
            javax.net.ssl.TrustManagerFactory tmf = javax.net.ssl.TrustManagerFactory
                    .getInstance("X509");
            Application app = MainApplication.app;
            keyStoreFile = new File(app.getDir("KeyStore", Context.MODE_PRIVATE) + File.separator