Code example for X509TrustManager

Methods: checkClientTrusted

0
        } 
 
        public void checkClientTrusted(X509Certificate[] chain, String authType)
        throws CertificateException 
        { 
            defaultTrustManager.checkClientTrusted(chain, authType);
        } 
 
        public void checkServerTrusted(X509Certificate[] chain, String authType)
        throws CertificateException 
        { 
            TrustManagerFactory.setLastCertChain(chain);
            try 
            { 
                defaultTrustManager.checkServerTrusted(chain, authType);
            } 
            catch (CertificateException e)
            { 
                localTrustManager.checkServerTrusted(new X509Certificate[] {chain[0]}, authType);
            } 
            if (!DomainNameChecker.match(chain[0], mHost))