@Override
    public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
      checkTrusted(chain, authType, CHECK_SERVER_TRUSTED);
    }
@Override
    public void checkServerTrusted(X509Certificate[] chain, String authType)