生成ca登入请求
接口说明
本接口为生成ca登入请求内容
发起签署准备
接口名 |
caSdkLogin/generateReqTask |
接口描述 |
生成ca登入二维码 |
data输入参数
参数名称 |
类型 |
必填 |
说明 |
notifyUrl |
String |
是 |
登入过程结果回调 |
返回参数
参数名称 |
类型 |
必填 |
说明 |
claimReqUrlBase64 |
String |
是 |
Base64位编码的登入请求内容 |
claimUuid |
String |
是 |
此二维码的唯一标记ID |
durateTime |
int |
是 |
二维码的有效时间 |
msg |
String |
否 |
描述 |
JAVA调用实例
String url="xxx";
String notifyUrl = "";
String methodUrl = "caSdkLogin/generateReqTask";
String appId="";
String appSecret="";
Map<String, Object> params = new HashMap<String, Object>();
params.put("notifyUrl", notifyUrl);
String data = JSONObject.toJSONString(params);
Map channelContext = MessageUtil.getChannelContext(appId, appSecret,
"app_secret", data, null);
String rpcResult = HttpsClientUtil.getInstance().httpsPost(
url+"/api/v1/"+methodUrl,
JSONObject.toJSONString(channelContext)
);
System.out.println("返回结果:" + rpcResult);