public
class
InnerSignImpl extends AbstractSignImpl {
@Override
/
/
mtopsdk.security.AbstractSignImpl
public HashMap getUnifiedSign(HashMap arg17, HashMap arg18, String appKey, String authCode, boolean useWua, String requestId) {
String instanceId
=
this.c();
if
(appKey
=
=
null) {
arg17.put(
"SG_ERROR_CODE"
,
"AppKey is null"
);
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, instanceId
+
" [getUnifiedSign] AppKey is null."
);
return
null;
}
if
(arg17
=
=
null) {
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, instanceId
+
" [getUnifiedSign] params is null.appKey="
+
appKey);
return
null;
}
if
(this.f
=
=
null) {
arg17.put(
"SG_ERROR_CODE"
,
"unified is null"
);
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, instanceId
+
" [getUnifiedSign]sg unified sign is null, please call ISign init()"
);
return
null;
}
try
{
HashMap
input
=
new HashMap();
String data
=
(String)this.a(arg17, appKey, true).get(
"INPUT"
);
boolean v10
=
StringUtils.isBlank(data);
if
(v10) {
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, this.c()
+
" [getUnifiedSign]get sign failed with sign data empty "
,
"appKeyIndex="
+
this.a.k
+
",authCode="
+
this.a.i);
return
null;
}
input
.put(
"appkey"
, appKey);
input
.put(
"data"
, data);
input
.put(
"useWua"
, Boolean.valueOf(useWua));
input
.put(
"env"
, Integer.valueOf(this.d()));
input
.put(
"authCode"
, authCode);
input
.put(
"extendParas"
, arg18);
input
.put(
"requestId"
, requestId);
input
.put(
"api"
, arg17.get(
"api"
));
HashMap output
=
this.f.getSecurityFactors(
input
);
if
(output !
=
null && !output.isEmpty()) {
return
output;
}
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, this.c()
+
" [getUnifiedSign]get sign failed with no output "
,
"appKeyIndex="
+
this.a.k
+
",authCode="
+
this.a.i);
}
catch(SecException v0_1) {
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, this.c()
+
" [getUnifiedSign]get sign failed and SecException errorCode "
+
v0_1.getErrorCode()
+
",appKeyIndex="
+
this.a.k
+
",authCode="
+
this.a.i, v0_1);
}
catch(Throwable v0) {
TBSdkLog.e(
"mtopsdk.InnerSignImpl"
, this.c()
+
" [getUnifiedSign]get sign failed exception ,appKeyIndex="
+
this.a.k
+
",authCode="
+
this.a.i, v0);
}
return
null;
}
}