@Override
    public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)
            throws CertificateException {
        getTrustedChainForServer(chain, authType, socket);
    }
Returns the full trusted certificate chain found from {@code certs}.
<p>
Throws {@link CertificateException} when no trusted chain can be found from {@code certs}.
common/src/main/java/org/conscrypt/TrustManagerImpl.java