@Nullable
public final String signString(@NotNull String appKey, @NotNull String needSignString) {
Intrinsics.checkNotNullParameter(appKey,
"appKey"
);
Intrinsics.checkNotNullParameter(needSignString,
"needSignString"
);
/
/
签名方法
ISecureSignatureComponent secureSignatureComp
=
SecurityGuardManager.getInstance(AppContext.INSTANCE.get()).getSecureSignatureComp();
HashMap hashMap
=
new HashMap();
hashMap.put(
"INPUT"
, needSignString);
SecurityGuardParamContext securityGuardParamContext
=
new SecurityGuardParamContext();
securityGuardParamContext.appKey
=
appKey;
securityGuardParamContext.paramMap
=
hashMap;
securityGuardParamContext.requestType
=
3
;
try
{
return
secureSignatureComp.signRequest(securityGuardParamContext, "");
} catch (Exception e) {
e.printStackTrace();
return
null;
}
}