public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, String authType,
            String hostname) throws CertificateException {
        return checkTrusted(chain, null /* ocspData */, null /* tlsSctData */, authType, hostname,
                false);
    }
For backward compatibility with older Android API that used String for the hostname only.
common/src/main/java/org/conscrypt/TrustManagerImpl.java