生成ca登入二维码


接口说明

本接口为生成ca登入二维码


发起签署准备

接口名 caSdkLogin/generateNetQRCode
接口描述 生成ca登入二维码
data输入参数
参数名称 类型 必填 说明
notifyUrl String 是 登入过程结果回调
返回参数
参数名称 类型 必填 说明
qRCodeBase64 String 是 Base64位编码的登入二维码内容
claimUuid String 是 此二维码的唯一标记ID
durateTime int 是 二维码的有效时间
msg String 否 描述


JAVA调用实例

实例所需依赖请查看javaSdk

String url="xxx";//接口请求地址
String notifyUrl = "";//回调地址
String methodUrl = "caSdkLogin/generateNetQRCode";
String appId="";//应用id,由云签平台分配
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);


results matching ""

    No results matching ""