- 浏览: 18671 次
最新评论
package com.pingan.ff.btoam.demo;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.paic.pafa.utils.IdMaker;
import com.pingan.ff.btoam.demo.service.ClientService;
import com.pingan.ff.btoam.demo.util.Constant;
import com.pingan.pafa.papp.test.BaseSARTest;
import com.pingan.pafa.papp.test.SARContextConfiguration;
@SARContextConfiguration(sarList="ff-btoam-demo", protocols="jetty")
public class HttpsTest extends BaseSARTest{
@Autowired
ClientService clientService;
private static final String text="{\"checkType\":\"1\",\"thisCard\":\"粤A99999\",\"accidentCauseTwo\":\"142\",\"accidentCauseOne\":\"126\",\"reportNo\":\"90516004410000000105\",\"callNo\":\"15110001110\",\"canDrive\":\"1\",\"reportTime\":\"2017-11-3018:02:16\",\"confirmLossVal\":\"0\",\"isCargoLoss\":\"Y\",\"subrogationReport\":\"0\",\"accidentCauseThree\":\"106\",\"isPersonBlooded\":\"N\",\"isHighRiskCase\":\"N\",\"isDutyClearOfPhonePay\":\"N\",\"isCommunitySurvey\":\"N\",\"incidentMobile\":\"15100001111\",\"damageTime\":\"2017-11-3018:02:16\",\"subrogationFlag\":\"0\",\"injured\":\"Y\",\"caseTypeSpec\":\"AGENT_ACCEPT_95511\",\"incident\":\"李四\",\"icssCaseNo\":\"001\",\"accidentDetail\":\"行驶受损左转弯撞墙,本车车牌京A-S2444,本车损无人伤(系统自动生成)\",\"damageDistrict\":\"440304\",\"occurrenceType\":\"1\",\"policyList\":[{\"policyNo\":\"10516003980044539030\",\"departmentCode\":\"20516\"}],\"driver\":\"王五\",\"damageCityCode\":\"440300\",\"damagePlace\":\"广东省-深圳市-福田区-八卦三路\",\"isLocalClaim\":\"1\",\"acceptUser\":\"HONGXUSHUAN605\",\"isCalledPoliceAnd120\":\"N\",\"taskList\":[{\"channelType\":\"01\",\"assessUm\":\"\",\"taskNo\":\"90516004410000000105\",\"carMark\":\"粤A99999\"}],\"disposeAdvice\":\"1\",\"isCarLoss\":\"Y\",\"surveyTaskTypeForIcoreClaim\":\"05\",\"wholeCaseType\":\"02\"}";
@Test
public void testSetName() throws Exception{
Map<String, Object> parameterMap = new HashMap<String,Object>();
parameterMap.put(Constant.REQUESTID, IdMaker.getInstance().getID());
parameterMap.put(Constant.CLIENTID, "route.aiclaim");
parameterMap.put(Constant.SERVICEID, "aiclaim.injure.xxx");
parameterMap.put(Constant.FORMAT, "json");
parameterMap.put(Constant.CHARSET, "utf-8");
parameterMap.put(Constant.TIMESTAMP, System.currentTimeMillis());
parameterMap.put(Constant.VERSION, "1.0.0");
parameterMap.put(Constant.REQUESTDATA, text);
parameterMap.put(Constant.ISENCRYPTED, Constant.ISENCRYPTED_TRUE);
clientService.request(parameterMap,Constant.ISENCRYPTED_TRUE);
}
}
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.paic.pafa.utils.IdMaker;
import com.pingan.ff.btoam.demo.service.ClientService;
import com.pingan.ff.btoam.demo.util.Constant;
import com.pingan.pafa.papp.test.BaseSARTest;
import com.pingan.pafa.papp.test.SARContextConfiguration;
@SARContextConfiguration(sarList="ff-btoam-demo", protocols="jetty")
public class HttpsTest extends BaseSARTest{
@Autowired
ClientService clientService;
private static final String text="{\"checkType\":\"1\",\"thisCard\":\"粤A99999\",\"accidentCauseTwo\":\"142\",\"accidentCauseOne\":\"126\",\"reportNo\":\"90516004410000000105\",\"callNo\":\"15110001110\",\"canDrive\":\"1\",\"reportTime\":\"2017-11-3018:02:16\",\"confirmLossVal\":\"0\",\"isCargoLoss\":\"Y\",\"subrogationReport\":\"0\",\"accidentCauseThree\":\"106\",\"isPersonBlooded\":\"N\",\"isHighRiskCase\":\"N\",\"isDutyClearOfPhonePay\":\"N\",\"isCommunitySurvey\":\"N\",\"incidentMobile\":\"15100001111\",\"damageTime\":\"2017-11-3018:02:16\",\"subrogationFlag\":\"0\",\"injured\":\"Y\",\"caseTypeSpec\":\"AGENT_ACCEPT_95511\",\"incident\":\"李四\",\"icssCaseNo\":\"001\",\"accidentDetail\":\"行驶受损左转弯撞墙,本车车牌京A-S2444,本车损无人伤(系统自动生成)\",\"damageDistrict\":\"440304\",\"occurrenceType\":\"1\",\"policyList\":[{\"policyNo\":\"10516003980044539030\",\"departmentCode\":\"20516\"}],\"driver\":\"王五\",\"damageCityCode\":\"440300\",\"damagePlace\":\"广东省-深圳市-福田区-八卦三路\",\"isLocalClaim\":\"1\",\"acceptUser\":\"HONGXUSHUAN605\",\"isCalledPoliceAnd120\":\"N\",\"taskList\":[{\"channelType\":\"01\",\"assessUm\":\"\",\"taskNo\":\"90516004410000000105\",\"carMark\":\"粤A99999\"}],\"disposeAdvice\":\"1\",\"isCarLoss\":\"Y\",\"surveyTaskTypeForIcoreClaim\":\"05\",\"wholeCaseType\":\"02\"}";
@Test
public void testSetName() throws Exception{
Map<String, Object> parameterMap = new HashMap<String,Object>();
parameterMap.put(Constant.REQUESTID, IdMaker.getInstance().getID());
parameterMap.put(Constant.CLIENTID, "route.aiclaim");
parameterMap.put(Constant.SERVICEID, "aiclaim.injure.xxx");
parameterMap.put(Constant.FORMAT, "json");
parameterMap.put(Constant.CHARSET, "utf-8");
parameterMap.put(Constant.TIMESTAMP, System.currentTimeMillis());
parameterMap.put(Constant.VERSION, "1.0.0");
parameterMap.put(Constant.REQUESTDATA, text);
parameterMap.put(Constant.ISENCRYPTED, Constant.ISENCRYPTED_TRUE);
clientService.request(parameterMap,Constant.ISENCRYPTED_TRUE);
}
}
发表评论
-
aaa
2018-03-26 17:23 01、前后端安全方案(防篡改、防重放、敏感信息加解密、防XSS攻 ... -
ssssss
2018-03-26 16:16 02015年年度计划 1、熟悉环境、架构、开发流程 2、业务模 ... -
golsing
2018-03-26 16:14 02015年年度计划 1、熟悉环境、架构、开发流程 2、业务模 ... -
ClientServiceRestTemplateImpl
2018-03-10 17:23 631package com.pingan.ff.btoam.dem ... -
ClientService
2018-03-10 17:34 502package com.pingan.ff.btoam.dem ... -
ClientConfig
2018-03-10 17:33 449package com.pingan.ff.btoam.dem ... -
responseDTO
2018-03-10 17:32 573package com.pingan.ff.btoam.dem ... -
配置项
2018-03-10 17:31 500client.connectTimeout=60000 cli ... -
HttpsClientRequestFactory
2018-03-08 20:48 1474package com.pingan.ff.btoam.dem ... -
dfdfdf
2018-03-08 20:22 545<!--连接池管理 --> <bean ... -
sdds
2018-03-08 20:19 54package com.pingan.ff.esb.proxy ... -
ddsd
2018-03-08 20:29 714import java.security.cert.Certi ... -
测试一下
2017-08-23 13:50 591测试测试测试测试测试测试测试 -
面经面经
2017-03-29 19:13 560一、简历 简历里面需要 ... -
浅谈https\ssl\数字证书
2015-03-03 11:15 530http://www.cnblogs.com/P_Chou/a ... -
Java多线程总结之线程安全队列Queue
2015-01-07 15:20 865在Java多线程应用中,队列的使用率很高,多数生产消费模型的 ... -
面试问题
2015-01-07 14:45 588今天被架构师问了一连串的问题,估计问了有一个多小时 ... -
http长连接与短连接
2015-01-05 17:34 5751. HTTP协议与TCP/IP协议的关系 HTTP的长 ... -
ZooKeeper原理
2014-12-30 09:33 652ZooKeeper是一个分布式的,开放源码的分布式应用 ... -
diamond
2014-12-30 09:23 826大家好,今天开始为大家带来我们通用产品团队的产品 —— di ...
相关推荐
HTTPS测试一个测试HTTPS连接的简单程序如何运行HTTPSTest java -jar httpstest.jar https://5952f2153628c10646609f4829e786da.ithenticate.com https://api.ithenticate.com 输出: ... path=/; secure;...
本项目"HttpsTest"专注于演示如何使用Java进行HTTPS请求,涵盖需要证书验证和不需要证书验证两种情况。 在需要证书验证的场景下,Java应用程序通常会检查服务器提供的数字证书,以确认其身份和安全性。这涉及到以下...
在"HttpsTest"这个项目中,可能包含了实现上述步骤的代码示例,包括自定义TrustManager、配置SSLContext和OkHttpClient的详细代码。通过分析这些代码,开发者可以更深入地理解如何在Android应用中安全地访问HTTPS...
这个名为`HttpsTest`的压缩包文件很可能包含了一个简单的Android应用示例,演示了上述步骤。通过查看源代码,我们可以学习如何在实际项目中集成和使用这些功能。同时,要注意在生产环境中,为了保障用户安全,应当...
一、准备证书文件 我使用的是阿里云Symantec 免费版... server_name www.httpstest.com; ssl on; root html; index index.html index.htm; #这里的.pem/.key文件替换成自己对应的文件名 ssl_certificate cert/xxxx