|
@ -32,7 +32,7 @@ public class PrescriptionCAService {
|
|
|
@Autowired
|
|
|
private ObjectMapper objectMapper;
|
|
|
|
|
|
private String getHeaderXml(String api)
|
|
|
private String getHeaderXml(String api,String srcBusinessStreamNO)
|
|
|
{
|
|
|
return "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
|
|
|
"<root>\n" +
|
|
@ -48,7 +48,7 @@ public class PrescriptionCAService {
|
|
|
" <srcBusinessNodeCode>node01</srcBusinessNodeCode>\n" +
|
|
|
" <srcBusinessNodeName>审核</srcBusinessNodeName>\n" +
|
|
|
" <srcOperatorAccount>Zhuangsd</srcOperatorAccount>\n" +
|
|
|
" <srcBusinessStreamNO>11111</srcBusinessStreamNO>\n" +
|
|
|
" <srcBusinessStreamNO>"+srcBusinessStreamNO+"</srcBusinessStreamNO>\n" +
|
|
|
" <srcDataExtProperty></srcDataExtProperty>\n" +
|
|
|
"</root>";
|
|
|
}
|
|
@ -56,7 +56,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* CA认证服务二次封装
|
|
|
*/
|
|
|
private String postCAServer(String api, Map<String,String> params) throws Exception
|
|
|
private String postCAServer(String api, Map<String,String> params,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
|
|
|
String urlString = SystemConfig.sysPropertiesSets.get("ca_url");
|
|
@ -74,7 +74,7 @@ public class PrescriptionCAService {
|
|
|
|
|
|
msgBody += "</root>";
|
|
|
|
|
|
String msgHeader = getHeaderXml(api);
|
|
|
String msgHeader = getHeaderXml(api,srcBusinessStreamNO);
|
|
|
|
|
|
Map<String,String> p = new HashMap<>();
|
|
|
p.put("msgHeader",msgHeader);
|
|
@ -86,7 +86,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* 判断是否有实名证书
|
|
|
**/
|
|
|
public String isApplied(String strUserIdcardNum) throws Exception
|
|
|
public String isApplied(String strUserIdcardNum,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
Boolean isSuccess = true;
|
|
|
String re = "";
|
|
@ -98,7 +98,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strUserIdcardNum",strUserIdcardNum);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(action, params);
|
|
|
re = postCAServer(action, params,srcBusinessStreamNO);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -131,7 +131,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* 请求实名软证书并进行数字签名
|
|
|
**/
|
|
|
public String requestRealNameSoftCertAndSign(String strUserIdcardNum,String strRealNameSoftCertCalledPasswd,String strOriginalData) throws Exception
|
|
|
public String requestRealNameSoftCertAndSign(String strUserIdcardNum,String strRealNameSoftCertCalledPasswd,String strOriginalData,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
Boolean isSuccess = true;
|
|
|
String re = "";
|
|
@ -147,7 +147,7 @@ public class PrescriptionCAService {
|
|
|
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(action, params);
|
|
|
re = postCAServer(action, params,srcBusinessStreamNO);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -183,7 +183,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* 获取实名软证书的过期时间
|
|
|
**/
|
|
|
public String getRealNameSoftCertExpiredDatetime(String strUserIdcardNum) throws Exception
|
|
|
public String getRealNameSoftCertExpiredDatetime(String strUserIdcardNum,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
Boolean isSuccess = true;
|
|
|
String re = "";
|
|
@ -196,7 +196,7 @@ public class PrescriptionCAService {
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
|
|
|
re = postCAServer(action, params);
|
|
|
re = postCAServer(action, params,srcBusinessStreamNO);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -229,7 +229,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* 修改实名软证书调用保护口令
|
|
|
**/
|
|
|
public String modifyRealNameSoftCertCalledPasswd(String strUserIdcardNum,String strOldCalledPasswd,String strNewCalledPasswd) throws Exception
|
|
|
public String modifyRealNameSoftCertCalledPasswd(String strUserIdcardNum,String strOldCalledPasswd,String strNewCalledPasswd,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
Boolean isSuccess = true;
|
|
|
String re = "";
|
|
@ -244,7 +244,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strNewCalledPasswd",strNewCalledPasswd);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(action, params);
|
|
|
re = postCAServer(action, params,srcBusinessStreamNO);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|
|
@ -283,7 +283,7 @@ public class PrescriptionCAService {
|
|
|
/**
|
|
|
* 验证签名(带多服务器负载均衡)
|
|
|
**/
|
|
|
public String verifySignOnMultiServer(String strSignData,String strCertData,String strOriginalData) throws Exception
|
|
|
public String verifySignOnMultiServer(String strSignData,String strCertData,String strOriginalData,String srcBusinessStreamNO) throws Exception
|
|
|
{
|
|
|
Boolean isSuccess = true;
|
|
|
String re = "";
|
|
@ -297,7 +297,7 @@ public class PrescriptionCAService {
|
|
|
params.put("strOriginalData",strOriginalData);
|
|
|
|
|
|
body = objectMapper.writeValueAsString(params);
|
|
|
re = postCAServer(action, params);
|
|
|
re = postCAServer(action, params,srcBusinessStreamNO);
|
|
|
|
|
|
if(StringUtil.isEmpty(re))
|
|
|
{
|