2021-06-30

SignatureInfo signatureInfo = new SignatureInfo();
        signatureInfo.setTheme("第三方签署合同测试");
        signatureInfo.setFinishDate("2021-8-1");
        signatureInfo.setSignMode("1");
        signatureInfo.setEnterpriseName("广西柳钢东信科技有限公司");
        signatureInfo.setIsTemplateUse("0");

        List signatureSigners = new ArrayList<>();
        SignatureSigner signatureSigner = new SignatureSigner();
        signatureSigner.setEnterpriseName("广西柳钢东信科技有限公司");
        signatureSigner.setIdentity("452227199310223312");
        signatureSigners.add(signatureSigner);

        signatureInfo.setSinatrueSignerPushList(signatureSigners);

        List signatureFiles = new ArrayList<>();
        SignatureFile signatureFile = new SignatureFile();
        signatureFile.setFileUrl("/group1/trusted/dev/temp/工商快照.pdf");
        signatureFile.setFileName("工商快照.pdf");
        signatureFiles.add(signatureFile);

        signatureInfo.setSinatrueSignFileList(signatureFiles);

        String signatureInfoString = JSONObject.toJSONString(signatureInfo);
        JSONObject signatureInfoStringObject = JSONObject.parseObject(signatureInfoString);

        try {
            Result jsonObjectResult = SendHttpRequestUtil.doPost("http://220.173.106.240:10062/test/api/sinatrue/sinatrueSignInfo/push", signatureInfoStringObject, "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAMOf99XMdB30wza4\n" +
                    "5c3Ae1PD5xmIrFlKdMervW/jG9JwsUUtKWentawT36lKtlSpThfwLs5xqOABomo/\n" +
                    "up+qRimcqaML0GLy3FFwpEhVxllYNZjOxgmP3wWf+Kfpu5WMEDKmjgjXKn8EMq6t\n" +
                    "WoRLYkKjPFXkUxawxYHD7zVXIPI1AgMBAAECgYAR7LVzxKEbIZNFj1mXKbzjJv8k\n" +
                    "6s4H/HeI2Caqet/Qv3yuvv2dPtO5qbSDuZHNXhoGvX48clOr+tpb6+z4tkxpWFrL\n" +
                    "66JyHgKESChWSChCzeZ9ejPzHqJ6iyiDG+d+RSSXHYGpAFFr4sGH27DY6Zd2jWYv\n" +
                    "9wXbRZb5o9GS3q5/PQJBAP1du/qduoPPvQuZB3MantMPcweug66ZeEj0fPZ8gjep\n" +
                    "ma4x17tE8lQ35QAn+lUrGrDiou42oVGUXUeIRc9B82cCQQDFqJIrkimLSVv3B3uy\n" +
                    "AWs4JQXnFvR7nRD1LOloiqcwo6JjNA3lhiHji6o0kFgmX2TJhVZ8R2sJPK+OuXCx\n" +
                    "NSgDAkBU9o7n/uah9xLlBb8qyT2Dd4XSiKId9dcRV/Nj0OL1+YjQkmROp1NADLJd\n" +
                    "eAqJbvf3YzjR+z3jloYlS7xlQS93AkBVpdvgwW77CgitnDJ/SZoaNADAx/OcdMza\n" +
                    "UGG7iQk1TFKbRf0Xje21Wdmg+UMZLZDQudRl+dRppkA0SiqIvw3dAkEA4d9m6tBq\n" +
                    "vmAok5hVOTDxvwkBo6XQtwOLchplzfJBEsqVwHM3/ghZjNAPqRkeK1VQCwdJ0pyI\n" +
                    "Qynxg/GHy3outA==","sms");
            System.out.println(jsonObjectResult.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }

你可能感兴趣的:(2021-06-30)