提交应用进行应用加固,加固后需通过alibaba.security.jaq.app.shieldresult.get接口查询加固结果
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
app_info | ScanAppInfo | 可选 | 待加固的应用信息 | ||||||||
|
|||||||||||
channel | ShieldChannel | 可选 | 渠道列表,多渠道加固时填写 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ScanTaskInfo | 加固任务信息 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaSecurityJaqAppShieldRequest req = new AlibabaSecurityJaqAppShieldRequest(); AlibabaSecurityJaqAppShieldRequest.ScanAppInfo obj1 = new AlibabaSecurityJaqAppShieldRequest.ScanAppInfo(); obj1.setDataType(1L); obj1.setMd5( "dd5b29a800246d7089febf228286d901" ); obj1.setSize(21341L); obj1.setAppOsType(1L); req.setAppInfo(obj1); AlibabaSecurityJaqAppShieldRequest.ShieldChannel obj2 = new AlibabaSecurityJaqAppShieldRequest.ShieldChannel(); obj2.setValues( "" 91 "," 360 "" ); obj2.setMetaName( "channel" ); req.setChannel(obj2); AlibabaSecurityJaqAppShieldResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 | < alibaba_security_jaq_app_shield_response > < result > < item_id >0217beb9-87ac-4d01-ae37-a51448a261ff</ item_id > < progress >1</ progress > </ result > </ alibaba_security_jaq_app_shield_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.param-error | 请求参数错误 | 请检查输入参数 |
isp.server-error | 服务端错误 | 服务端处理错误,请稍后进行重试 |