onenettest.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!--meta charset="utf-8"-->
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <style>
  7. form { display: table; }
  8. p { display: table-row; }
  9. label { display: table-cell; }
  10. input { display: table-cell; }
  11. h1{ color:red;}
  12. h2{ color:red;}
  13. </style>
  14. <!-- <title>Onenet插件测试页面</title> -->
  15. <!-- <h1>重要提示:</h1>
  16. <h2>请不要直接在本地打开onenettest.html进行测试,这样会导致调用onenethelper.js的接口失败</h2>
  17. <h2>一定要将demo目录下的文件,放置到web服务器中,通过浏览器访问的方式进行测试。</h2>
  18. <h2>各个接口的详细说明,请务必参考《【非密】卫士通安全网关V4.0接口开发手册.pdf》</h2> -->
  19. <!-- (1) 可选 , 针对IE浏览器 申明引用ActiveX 对象(如果业务系统不需要支持IE浏览器,可以不引用ActiveX对象) -->
  20. <object id="AuthClientCtrl" classid="clsid:C966EBD9-49E9-4E9C-B854-270861C58382" width="0" height="0"></object>
  21. <!-- 可选 , 针对奇安信浏览器 引用plugin 对象 -->
  22. <object id="plugin" type="application/onenet-plugin" width="0" height="0"></object>
  23. <!-- 可选 , 针对老版本IE浏览器 兼容模式不支持json的情况下,引用json2.js,解决json 解析问题。(如果业务系统不需要支持IE浏览器,可以不引用) -->
  24. <script type="text/javascript" src="json2.js"></script>
  25. <!-- (2)引入onenethelper浏览器插件的js文件,总共四个文件 -->
  26. <script type="text/javascript" src="onenethelper.webext.js"></script>
  27. <script type="text/javascript" src="onenethelper.np.js"></script>
  28. <script type="text/javascript" src="onenethelper.ie.js"></script>
  29. <script type="text/javascript" src="onenethelper.js"></script>
  30. </head>
  31. <body>
  32. <script src="./axios.min.js"></script>
  33. <script>
  34. //(3) 初始化onenethelper插件
  35. onenetHelperInit.Init();
  36. //(4) 判断onenethelper插件是否可用
  37. function IsAddonAvailable()
  38. {
  39. if(oneNetHelper.IsAddonAvailable())
  40. {
  41. form1.T01.value = "true";
  42. }
  43. else
  44. {
  45. alert("请先安装插件!")
  46. //(5) 当onenethelper插件不可用时,调用通知接口加载插件
  47. oneNetHelper.AddonAvailableNotify(AddonAvailableCb);
  48. }
  49. }
  50. function AddonAvailableCb(ob)
  51. {
  52. form1.T01.value=ob.addon;
  53. }
  54. function ClearAddonStatusButton()
  55. {
  56. form1.T01.value = "";
  57. }
  58. //(6)以下为具体的业务调用。
  59. function GetUserInfoCb(ob)
  60. {
  61. //console.log('GetUserInfoCb return :' + JSON.stringify(ob));
  62. form1.T6.value=ob.ret;
  63. if(ob.ret == 1)
  64. {
  65. form1.T1.value=ob.authresult;
  66. form1.T2.value=ob.userid;
  67. form1.T3.value=ob.username;
  68. form1.T4.value=ob.certuserid;
  69. form1.T5.value=ob.certusername;
  70. form1.T7.value="成功";
  71. }
  72. else
  73. {
  74. form1.T7.value=ob.errinfo;
  75. }
  76. }
  77. function GetUserInfoClear()
  78. {
  79. form1.T1.value="";
  80. form1.T2.value="";
  81. form1.T3.value="";
  82. form1.T4.value="";
  83. form1.T5.value="";
  84. form1.T6.value="";
  85. form1.T7.value="";
  86. }
  87. function GetUserInfo()
  88. {
  89. if(form1.T01.value == "false" || form1.T01.value == 0)
  90. {
  91. alert("请先安装插件!")
  92. }
  93. oneNetHelper.GetUserInfo(GetUserInfoCb);
  94. }
  95. function GetSignAndTokenCb(ob)
  96. {
  97. //console.log('GetSignAndTokenCb return:' + JSON.stringify(ob));
  98. form1.T10.value=ob.ret;
  99. if(ob.ret == 1)
  100. {
  101. console.log(ob.signandtoken,'组合令牌')
  102. form1.T9.value = ob.signandtoken;//获取组合令牌数据
  103. form1.T11.value="成功";
  104. axios({
  105. method: 'post', //
  106. url:' http://127.0.0.1:6006/webservice/verifyIdentityTicket ', // 配制api
  107. data: { // 配制参数
  108. challenge: form1.T8.value,//随机挑战数
  109. identityTicket:form1.T9.value,//组合令牌数据
  110. appServerID:'0'//服务器ID
  111. },
  112. headers: {
  113. }
  114. }).then(res => {
  115. if(res.expiresIn==7200) {
  116. }
  117. })
  118. }
  119. else
  120. {
  121. form1.T11.value=ob.errinfo;
  122. }
  123. }
  124. function GetSignAndTokenClear()
  125. {
  126. //form1.T8.value="";
  127. form1.T9.value="";
  128. form1.T10.value="";
  129. form1.T11.value="";
  130. }
  131. function GetSignAndToken()
  132. {
  133. if(form1.T01.value == "false" || form1.T01.value == 0)
  134. {
  135. alert("请先安装插件!")
  136. }
  137. if (form1.T8.value == "")
  138. {
  139. alert("请输入随机数");
  140. }
  141. else
  142. {
  143. axios({
  144. method: 'post', //
  145. url:' http://127.0.0.1:6006/webservice/generatorchallenge', // 配制api
  146. data: { // 配制参数
  147. },
  148. headers: {
  149. }
  150. }).then(res => {
  151. if(res.data.code ==0)
  152. console.log(res.data.msg,'随机挑战数')
  153. form1.T8.value = res.data.msg//获取随机挑战数
  154. oneNetHelper.GetSignAndToken(form1.T8.value, GetSignAndTokenCb);
  155. })
  156. }
  157. }
  158. function GetUserCertInfoCb(ob)
  159. {
  160. //console.log('GetUserCertInfoCb return :' + JSON.stringify(ob));
  161. form1.T37.value=ob.ret;
  162. if(ob.ret == 1)
  163. {
  164. form1.T39.value=ob.DNStringAll;
  165. form1.T21.value=ob.UserName;
  166. form1.T22.value=ob.UserID;
  167. form1.T23.value=ob.DNCode;
  168. form1.T24.value=ob.DisName;
  169. form1.T25.value=ob.UniqueId;
  170. form1.T26.value=ob.IssuerDisName;
  171. form1.T27.value=ob.CertSerial;
  172. form1.T28.value=ob.EMail;
  173. form1.T29.value=ob.Org;
  174. form1.T30.value=ob.OrgUnit;
  175. form1.T31.value=ob.City;
  176. form1.T32.value=ob.State;
  177. form1.T33.value=ob.Descption;
  178. form1.T34.value=ob.Version;
  179. form1.T35.value=ob.BeginTime;
  180. form1.T36.value=ob.EndTime;
  181. form1.T38.value="成功";
  182. }
  183. else
  184. {
  185. form1.T38.value=ob.errinfo;
  186. }
  187. }
  188. function GetUserCertInfoClear()
  189. {
  190. form1.T21.value="";
  191. form1.T22.value="";
  192. form1.T23.value="";
  193. form1.T24.value="";
  194. form1.T25.value="";
  195. form1.T26.value="";
  196. form1.T27.value="";
  197. form1.T28.value="";
  198. form1.T29.value="";
  199. form1.T30.value="";
  200. form1.T31.value="";
  201. form1.T32.value="";
  202. form1.T33.value="";
  203. form1.T34.value="";
  204. form1.T35.value="";
  205. form1.T36.value="";
  206. form1.T37.value="";
  207. form1.T38.value="";
  208. form1.T39.value="";
  209. }
  210. function GetUserCertInfo()
  211. {
  212. if(form1.T01.value == "false" || form1.T01.value == 0)
  213. {
  214. alert("请先安装插件!")
  215. }
  216. oneNetHelper.GetUserCertInfo(GetUserCertInfoCb);
  217. }
  218. //获取统一认证Token的应用举例
  219. function GetUASTokenCb(ob)
  220. {
  221. //console.log('obj:' + JSON.stringify(ob));
  222. if(ob.ret == 1)
  223. {
  224. form1.S01.value="成功";
  225. form1.S02.value=ob.token;
  226. form1.S03.value=ob.expiredate;
  227. }
  228. else
  229. {
  230. form1.S01.value=ob.errinfo;
  231. }
  232. }
  233. function GetUASToken()
  234. {
  235. oneNetHelper.GetUASToken(GetUASTokenCb);
  236. }
  237. function GetUASTokenClear()
  238. {
  239. form1.S01.value="";
  240. form1.S02.value="";
  241. form1.S03.value="";
  242. }
  243. function SSLUsbKeyLoginCb(ob)
  244. {
  245. // console.log('SSLUsbKeyLoginCb return :' + JSON.stringify(ob));
  246. form1.T44.value=ob.ret;
  247. if(ob.ret == 1)
  248. {
  249. form1.T45.value="认证成功";
  250. }
  251. else
  252. {
  253. form1.T45.value=ob.errinfo;
  254. }
  255. }
  256. function SSLUsbKeyLoginClear()
  257. {
  258. form1.T41.value="";
  259. form1.T42.value="";
  260. form1.T43.value="";
  261. form1.T44.value="";
  262. form1.T45.value="";
  263. }
  264. function SSLUsbKeyLogin()
  265. {
  266. if (form1.T41.value == ""||form1.T42.value == ""||form1.T43.value == "")
  267. {
  268. alert("请输入登录参数");
  269. }
  270. else
  271. {
  272. oneNetHelper.SSLUsbKeyLogin(form1.T41.value,form1.T42.value,form1.T43.value,SSLUsbKeyLoginCb);
  273. }
  274. }
  275. function SSLUserPwdLoginCb(ob)
  276. {
  277. //console.log('SSLUserPwdLoginCb return :' + JSON.stringify(ob));
  278. form1.T50.value=ob.ret;
  279. if(ob.ret == 1)
  280. {
  281. form1.T51.value="认证成功";
  282. }
  283. else
  284. {
  285. form1.T51.value=ob.errinfo;
  286. }
  287. }
  288. function SSLUserPwdLoginClear()
  289. {
  290. form1.T46.value="";
  291. form1.T47.value="";
  292. form1.T48.value="";
  293. form1.T49.value="";
  294. form1.T50.value="";
  295. form1.T51.value="";
  296. }
  297. function SSLUserPwdLogin()
  298. {
  299. if (form1.T46.value == ""||form1.T47.value == ""||form1.T48.value == ""||form1.T49.value == "")
  300. {
  301. alert("请输入登录参数");
  302. }
  303. else
  304. {
  305. oneNetHelper.SSLUserPwdLogin(form1.T46.value,form1.T47.value,form1.T48.value,form1.T49.value,SSLUserPwdLoginCb);
  306. }
  307. }
  308. function IPSecUsbKeyLoginCb(ob)
  309. {
  310. //console.log('obj:' + JSON.stringify(ob));
  311. form1.T55.value=ob.ret;
  312. if(ob.ret == 1)
  313. {
  314. form1.T56.value="认证成功";
  315. }
  316. else
  317. {
  318. form1.T56.value=ob.errinfo;
  319. }
  320. }
  321. function IPSecUsbKeyLoginClear()
  322. {
  323. form1.T52.value="";
  324. form1.T53.value="";
  325. form1.T54.value="";
  326. form1.T55.value="";
  327. form1.T56.value="";
  328. }
  329. function IPSecUsbKeyLogin()
  330. {
  331. if (form1.T52.value == ""||form1.T53.value == ""||form1.T54.value == "")
  332. {
  333. alert("请输入登录参数");
  334. }
  335. else
  336. {
  337. oneNetHelper.IPSecUsbKeyLogin(form1.T52.value,form1.T53.value,form1.T54.value,IPSecUsbKeyLoginCb);
  338. }
  339. }
  340. function LoginCb(ob)
  341. {
  342. //console.log('obj:' + JSON.stringify(ob));
  343. form1.T63.value=ob.ret;
  344. if(ob.ret == 1)
  345. {
  346. form1.T64.value="认证成功";
  347. }
  348. else
  349. {
  350. form1.T64.value=ob.errinfo;
  351. }
  352. }
  353. function LoginClear()
  354. {
  355. form1.T57.value="";
  356. form1.T58.value="";
  357. form1.T59.value="";
  358. form1.T60.value="";
  359. form1.T61.value="";
  360. form1.T62.value="";
  361. form1.T63.value="";
  362. form1.T64.value="";
  363. }
  364. function Login()
  365. {
  366. oneNetHelper.Login(form1.T57.value,form1.T58.value,form1.T59.value,form1.T60.value,form1.T61.value,form1.T62.value,LoginCb);
  367. }
  368. function LogoutCb(ob)
  369. {
  370. //console.log('obj:' + JSON.stringify(ob));
  371. form1.T72.value=ob.ret;
  372. if(ob.ret == 1)
  373. {
  374. form1.T73.value="退出成功";
  375. }
  376. else
  377. {
  378. form1.T73.value=ob.errinfo;
  379. }
  380. }
  381. function Logout()
  382. {
  383. if (form1.T71.value == "")
  384. {
  385. alert("请输入登出参数");
  386. }
  387. else
  388. {
  389. oneNetHelper.Logout(form1.T71.value, LogoutCb);
  390. }
  391. }
  392. function LogoutClear()
  393. {
  394. form1.T71.value="";
  395. form1.T72.value="";
  396. form1.T73.value="";
  397. }
  398. function QuerySecPortalStatusCb(ob)
  399. {
  400. //console.log('obj:' + JSON.stringify(ob));
  401. form1.T83.value=ob.ret;
  402. if(ob.ret == 1)
  403. {
  404. form1.T82.value=ob.AuthEvent;
  405. form1.T84.value="成功";
  406. }
  407. else
  408. {
  409. form1.T84.value=ob.errinfo;
  410. }
  411. }
  412. function QuerySecPortalStatus()
  413. {
  414. if (form1.T81.value == "")
  415. {
  416. alert("请输入参数");
  417. }
  418. else
  419. {
  420. oneNetHelper.QuerySecPortalStatus(form1.T81.value, QuerySecPortalStatusCb);
  421. }
  422. }
  423. function QuerySecPortalStatusClear()
  424. {
  425. form1.T81.value="";
  426. form1.T82.value="";
  427. form1.T83.value="";
  428. form1.T84.value="";
  429. }
  430. function HeartBeatCb(ob)
  431. {
  432. //console.log('obj:' + JSON.stringify(ob));
  433. form1.T92.value=ob.ret;
  434. if(ob.ret == 1)
  435. {
  436. form1.T93.value="成功";
  437. }
  438. else
  439. {
  440. form1.T93.value=ob.errinfo;
  441. }
  442. }
  443. function HeartBeat()
  444. {
  445. if (form1.T91.value == "")
  446. {
  447. alert("请输入参数");
  448. }
  449. else
  450. {
  451. oneNetHelper.HeartBeat(form1.T91.value, HeartBeatCb); //oneNetHelper.HeartBeat(form1.T91.value,null);
  452. }
  453. }
  454. function HeartBeatClear()
  455. {
  456. form1.T91.value="";
  457. form1.T92.value="";
  458. form1.T93.value="";
  459. }
  460. function ClearAll()
  461. {
  462. GetUserNameClear();
  463. GetSignAndTokenClear();
  464. GetUserCertInfoClear();
  465. LoginClear();
  466. LogoutClear();
  467. QuerySecPortalStatusClear();
  468. HeartBeatClear();
  469. }
  470. function GetGateWayAddrListCb(ob)
  471. {
  472. //console.log('obj:' + JSON.stringify(ob));
  473. form1.T101.value=ob.ret;
  474. if(ob.ret == 1)
  475. {
  476. form1.T102.value="成功";
  477. form1.T103.value=ob.wbaddrNum;
  478. if(ob.wbaddrNum > 0)
  479. {
  480. form1.T104.value=ob.webserviceList;
  481. form1.T105.value=ob.webserviceList[0];
  482. }
  483. form1.T106.value=ob.gwaddrNum;
  484. if(ob.gwaddrNum > 0)
  485. {
  486. form1.T107.value=ob.gatewayaddrList;
  487. form1.T108.value=ob.gatewayaddrList[0];
  488. }
  489. }
  490. else
  491. {
  492. form1.T102.value=ob.errinfo;
  493. }
  494. }
  495. function GetGateWayAddrList()
  496. {
  497. oneNetHelper.GetGateWayAddrList(GetGateWayAddrListCb);
  498. }
  499. function GetGateWayAddrListClear()
  500. {
  501. form1.T101.value="";
  502. form1.T102.value="";
  503. form1.T103.value="";
  504. form1.T104.value="";
  505. form1.T105.value="";
  506. form1.T106.value="";
  507. form1.T107.value="";
  508. form1.T108.value="";
  509. }
  510. function ChangeUKeyPinCb(ob)
  511. {
  512. //console.log('obj:' + JSON.stringify(ob));
  513. form1.T111.value=ob.ret;
  514. if(ob.ret == 1)
  515. {
  516. form1.T112.value="成功";
  517. }
  518. else
  519. {
  520. form1.T112.value=ob.errinfo;
  521. }
  522. }
  523. function ChangeUKeyPin()
  524. {
  525. if (form1.T113.value == "" ||form1.T114.value == ""||form1.T115.value == "")
  526. {
  527. alert("请输入PIN码");
  528. }
  529. else
  530. {
  531. if(form1.T114.value == form1.T115.value )
  532. {
  533. oneNetHelper.ChangeUKeyPin(form1.T113.value,form1.T114.value,ChangeUKeyPinCb);
  534. }
  535. else
  536. {
  537. alert("两次输入的新PIN码不一致");
  538. }
  539. }
  540. }
  541. function ChangeUKeyPinClear()
  542. {
  543. form1.T111.value="";
  544. form1.T112.value="";
  545. form1.T113.value="";
  546. form1.T114.value="";
  547. form1.T115.value="";
  548. }
  549. function JsonActionTestCmdDealCb(ob)
  550. {
  551. //console.log('obj:' + JSON.stringify(ob));
  552. form1.T121.value=ob.ret;
  553. if(ob.ret == 1)
  554. {
  555. form1.T122.value="成功";
  556. form1.T123.value=ob.value;
  557. }
  558. else
  559. {
  560. form1.T122.value=ob.errinfo;
  561. }
  562. }
  563. function JsonActionTestCmdDeal()
  564. {
  565. oneNetHelper.JsonActionTestCmdDeal(JsonActionTestCmdDealCb);
  566. }
  567. function JsonActionTestCmdDealClear()
  568. {
  569. form1.T121.value="";
  570. form1.T122.value="";
  571. form1.T123.value="";
  572. }
  573. </script>
  574. <form method="POST" action="--WEBBOT-SELF--" name="form1">
  575. <!-- <p><label>OnenetHelper测试页面</label> </p> -->
  576. <br/>
  577. <p>
  578. <label/><input type="button" value="获取插件状态" name="获取插件状态" OnClick = "IsAddonAvailable()">
  579. <label/><input type="button" value="清空插件状态" name="B01" OnClick = "ClearAddonStatusButton()">
  580. </p>
  581. <p>
  582. <label>安装结果:</label><input type="text" name="T01" value="0" size="80">
  583. </p>
  584. <p><label/><br/></p>
  585. <p/>
  586. <p>
  587. <label/><input type="button" value="获取用户信息" name="获取用户信息" OnClick="return GetUserInfo()">
  588. <label/><input type="button" value="清空用户信息" name="B1" OnClick = "return GetUserInfoClear()">
  589. </p>
  590. <p><label>认证结果:</label> <input type="text" name="T1" size="80"></p>
  591. <p><label>用户ID:</label> <input type="text" name="T2" size="80"></p>
  592. <p><label>用户名:</label> <input type="text" name="T3" size="80"></p>
  593. <p><label>证书用户ID:</label> <input type="text" name="T4" size="80"></p>
  594. <p><label>证书用户名:</label><input type="text" name="T5" size="80"></p>
  595. <p><label>调用结果:</label><input type="text" name="T6" size="80"></p>
  596. <p><label>错误信息:</label><input type="text" name="T7" size="80"></p>
  597. <br/>
  598. <p>
  599. <label/><input type="button" value="获取令牌和签名值" name="获取令牌签名值" OnClick = "return GetSignAndToken()">
  600. <label/><input type="button" value="清空令牌签名值" name="B4" OnClick = "return GetSignAndTokenClear()">
  601. </p>
  602. <p><label>随机数:</label><input type="text" name="T8" size="80" value="asfsadfsadfsadfasfsadf"></p>
  603. <p><label>令牌和签名值:</label><textarea style="OVERFLOW:hidden" type="text" name="T9" rows="6" cols="80" ></textarea></p>
  604. <p><label>调用结果:</label><input type="text" name="T10" size="80"></p>
  605. <p><label>错误信息:</label><input type="text" name="T11" size="80"></p>
  606. <br/>
  607. <br/>
  608. <p>
  609. <label/><input type="button" value="获取证书信息" name="获取证书信息" OnClick = "return GetUserCertInfo()">
  610. <label/><input type="button" value="清空证书信息" name="B4" OnClick = "return GetUserCertInfoClear()">
  611. </p>
  612. <p><label>DNStringAll</label> <input type="text" name="T39" size="120"></p>
  613. <p><label>UserName:</label> <input type="text" name="T21" size="80"></p>
  614. <p><label>UserID:</label> <input type="text" name="T22" size="80"></p>
  615. <p><label>DNCode:</label> <input type="text" name="T23" size="80"></p>
  616. <p><label>DisName:</label> <input type="text" name="T24" size="80"></p>
  617. <p><label>UniqueId:</label> <input type="text" name="T25" size="80"></p>
  618. <p><label>IssuerDisName</label><input type="text" name="T26" size="80"></p>
  619. <p><label>CertSerial</label><input type="text" name="T27" size="80"></p>
  620. <p><label>EMail</label><input type="text" name="T28" size="80"></p>
  621. <p><label>Org</label><input type="text" name="T29" size="80"></p>
  622. <p><label>OrgUnit</label><input type="text" name="T30" size="80"></p>
  623. <p><label>City</label><input type="text" name="T31" size="80"></p>
  624. <p><label>State</label><input type="text" name="T32" size="80"></p>
  625. <p><label>Descption</label><input type="text" name="T33" size="80"></p>
  626. <p><label>Version</label><input type="text" name="T34" size="80"></p>
  627. <p><label>BeginTime</label><input type="text" name="T35" size="80"></p>
  628. <p><label>EndTime</label><input type="text" name="T36" size="80"></p>
  629. <p><label>调用结果:</label><input type="text" name="T37" size="80"></p>
  630. <p><label>错误信息:</label><input type="text" name="T38" size="80"></p>
  631. <br/>
  632. <br/>
  633. <p>
  634. <label/><input type="button" value="获取统一认证Token" name="获取统一认证Token" OnClick = "GetUASToken()">
  635. <label/><input type="button" value="清空统一认证Token" name="C01" OnClick = "GetUASTokenClear()">
  636. </p>
  637. <p><label>调用结果:</label><input type="text" name="S01" value="0" size="80"></p>
  638. <p><label>Token值:</label> <input type="text" name="S02" size="80"></p>
  639. <p><label>Token有效时间:</label> <input type="text" name="S03" size="80"></p>
  640. </p>
  641. <p><label/><br/></p>
  642. <p>
  643. <label/><input type="button" value="SSL USBKEY登录" name="SSL USBKEY登录" OnClick = "return SSLUsbKeyLogin()">
  644. <label/><input type="button" value="清空SSL USBKEY登录" name="B5" OnClick = "return SSLUsbKeyLoginClear()">
  645. </p>
  646. <p><label>appToken: </label><input type="text" name="T41" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  647. <p><label>服务器ID: </label><input type="text" name="T42" size="80" value="0"></p>
  648. <p><label>UsbKeyPIN码:</label><input type="text" name="T43" size="80" value="11111111"></p>
  649. <p><label>调用结果:</label><input type="text" name="T44" size="80"></p>
  650. <p><label>错误信息:</label><input type="text" name="T45" size="80"></p>
  651. <br/>
  652. <br/>
  653. <p>
  654. <label/><input type="button" value="SSL用户名口令登录" name="SSL用户名口令登录" OnClick = "return SSLUserPwdLogin()">
  655. <label/><input type="button" value="清空SSL用户名口令登录" name="B5" OnClick = "return SSLUserPwdLoginClear()">
  656. </p>
  657. <p><label>appToken: </label><input type="text" name="T46" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  658. <p><label>服务器ID: </label><input type="text" name="T47" size="80" value="0"></p>
  659. <p><label>用户名: </label><input type="text" name="T48" size="80" value="testsx1"></p>
  660. <p><label>密 码: </label><input type="text" name="T49" size="80" value="11111111Aa"></p>
  661. <p><label>调用结果:</label><input type="text" name="T50" size="80"></p>
  662. <p><label>错误信息:</label><input type="text" name="T51" size="80"></p>
  663. <br/>
  664. <br/>
  665. <p>
  666. <label/><input type="button" value="IPSec USBKEY登录" name="IPSec USBKEY登录" OnClick = "return IPSecUsbKeyLogin()">
  667. <label/><input type="button" value="清空IPSec USBKEY登录" name="B5" OnClick = "return IPSecUsbKeyLoginClear()">
  668. </p>
  669. <p><label>appToken: </label><input type="text" name="T52" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  670. <p><label>服务器ID: </label><input type="text" name="T53" size="80" value="0"></p>
  671. <p><label>UsbKeyPIN码:</label><input type="text" name="T54" size="80" value="11111111"></p>
  672. <p><label>调用结果:</label><input type="text" name="T55" size="80"></p>
  673. <p><label>错误信息:</label><input type="text" name="T56" size="80"></p>
  674. <br/>
  675. <br/>
  676. <p>
  677. <label/><input type="button" value="登录" name="登录" OnClick = "return Login()">
  678. <label/><input type="button" value="清空登录" name="B5" OnClick = "return LoginClear()">
  679. </p>
  680. <p><label>appToken: </label><input type="text" name="T57" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  681. <p><label>用户名: </label><input type="text" name="T58" size="80" value="testsx1"></p>
  682. <p><label>密码: </label><input type="text" name="T59" size="80" value="11111111Aa"></p>
  683. <p><label>认证方式:</label><input type="text" name="T60" size="80" value="2"></p>
  684. <p><label>协议类型:</label><input type="text" name="T61" size="80" value="1"></p>
  685. <p><label>服务器ID:</label><input type="text" name="T62" size="80" value="0"></p>
  686. <p><label>调用结果:</label><input type="text" name="T63" size="80"></p>
  687. <p><label>错误信息:</label><input type="text" name="T64" size="80"></p>
  688. <br/>
  689. <br/>
  690. <p>
  691. <label/><input type="button" value="退出登录" name="退出" OnClick = "return Logout()">
  692. <label/><input type="button" value="清空退出" name="B6" OnClick = "return LogoutClear()">
  693. </p>
  694. <p><label>appToken: </label><input type="text" name="T71" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  695. <p><label>调用结果:</label><input type="text" name="T72" size="80"></p>
  696. <p><label>错误信息:</label><input type="text" name="T73" size="80"></p>
  697. <br/>
  698. <br/>
  699. <p>
  700. <label/><input type="button" value="查询SecPortal状态" name="查询状态" OnClick = "return QuerySecPortalStatus()">
  701. <label/><input type="button" value="清空查询状态" name="B6" OnClick = "return QuerySecPortalStatusClear()">
  702. </p>
  703. <p><label>appToken: </label><input type="text" name="T81" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  704. <p><label>状态值:</label><input type="text" name="T82" size="80"></p>
  705. <p><label>调用结果:</label><input type="text" name="T83" size="80"></p>
  706. <p><label>错误信息:</label><input type="text" name="T84" size="80"></p>
  707. <br/>
  708. <br/>
  709. <p>
  710. <label/><input type="button" value="发送心跳" name="心跳" OnClick = "return HeartBeat()">
  711. <label/><input type="button" value="清空心跳" name="B6" OnClick = "return HeartBeatClear()">
  712. </p>
  713. <p><label>appToken: </label><input type="text" name="T91" size="80" value="561BB220-58D4-4B7F-935D-E8113D80CC47"></p>
  714. <p><label>调用结果:</label><input type="text" name="T92" size="80"></p>
  715. <p><label>错误信息:</label><input type="text" name="T93" size="80"></p>
  716. <br/>
  717. <br/>
  718. <p>
  719. <label/><input type="button" value="获取SSL网关地址列表" name="获取SSL网关地址列表" OnClick = "return GetGateWayAddrList()">
  720. <label/><input type="button" value="清空获取SSL网关地址列表" name="B6" OnClick = "return GetGateWayAddrListClear()">
  721. </p>
  722. <p><label>内网口地址个数: </label><input type="text" name="T103" size="80"></p>
  723. <p><label>内网口地址数组: </label><input type="text" name="T104" size="80"></p>
  724. <p><label>第一个内网口地址:</label><input type="text" name="T105" size="80"></p>
  725. <p><label>外网口地址个数: </label><input type="text" name="T106" size="80"></p>
  726. <p><label>外网口地址数组: </label><input type="text" name="T107" size="80"></p>
  727. <p><label>第一个外网口地址:</label><input type="text" name="T108" size="80"></p>
  728. <p><label>调用结果: </label><input type="text" name="T101" size="80"></p>
  729. <p><label>错误信息: </label><input type="text" name="T102" size="80"></p>
  730. <br/>
  731. <br/>
  732. <p>
  733. <label/><input type="button" value="修改UKPIN码" name="修改UKPIN码" OnClick = "return ChangeUKeyPin()">
  734. <label/><input type="button" value="清空修改UKPIN码" name="B6" OnClick = "return ChangeUKeyPinClear()">
  735. </p>
  736. <p><label>旧口令: </label><input type="text" name="T113" size="80"></p>
  737. <p><label>新口令: </label><input type="text" name="T114" size="80"></p>
  738. <p><label>确认新口令:</label><input type="text" name="T115" size="80"></p>
  739. <p><label>调用结果: </label><input type="text" name="T111" size="80"></p>
  740. <p><label>错误信息: </label><input type="text" name="T112" size="80"></p>
  741. <br/>
  742. <br/>
  743. <p>
  744. <label/><input type="button" value="Action命令处理" name="Action命令处理" OnClick = "return JsonActionTestCmdDeal()">
  745. <label/><input type="button" value="清空命令处理" name="B6" OnClick = "return JsonActionTestCmdDealClear()">
  746. </p>
  747. <p><label>测试返回: </label><input type="text" name="T123" size="80"></p>
  748. <p><label>调用结果: </label><input type="text" name="T121" size="80"></p>
  749. <p><label>错误信息: </label><input type="text" name="T122" size="80"></p>
  750. </form>
  751. </body>
  752. </html>