@it-enterprise/digital-signature 1.5.4 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/euscp.worker.js +893 -342
- package/dist/it-digital-signature.mjs +322 -323
- package/dist/it-digital-signature.mjs.map +1 -1
- package/dist/it-digital-signature.umd.js +1 -1
- package/dist/it-digital-signature.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/DigitalSignature.js +4 -2
- package/src/Models.js +21 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in e) t(r, i, {
|
|
5
5
|
get: e[i],
|
|
@@ -15,7 +15,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
15
15
|
}, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
16
16
|
value: n,
|
|
17
17
|
enumerable: !0
|
|
18
|
-
}) : o, n)), u = /* @__PURE__ */ o(((e, t) => {
|
|
18
|
+
}) : o, n)), u = /* @__PURE__ */ o(((e, t, n) => {
|
|
19
19
|
(function(n, r) {
|
|
20
20
|
if (typeof e == "object" && typeof t == "object") t.exports = r();
|
|
21
21
|
else if (typeof define == "function" && define.amd) define([], r);
|
|
@@ -23,7 +23,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
23
23
|
var i = r();
|
|
24
24
|
for (var a in i) (typeof e == "object" ? e : n)[a] = i[a];
|
|
25
25
|
}
|
|
26
|
-
})(
|
|
26
|
+
})(n, function() {
|
|
27
27
|
return function(e) {
|
|
28
28
|
var t = {};
|
|
29
29
|
function n(r) {
|
|
@@ -1307,8 +1307,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
1307
1307
|
case 4: return this._sendPlugin(e, t, n);
|
|
1308
1308
|
}
|
|
1309
1309
|
}, l.prototype.execute = function(e, t, n) {
|
|
1310
|
-
var r, i;
|
|
1311
|
-
return
|
|
1310
|
+
var r = this.m_requests, i;
|
|
1311
|
+
return this.m_requests++, (i = this.makeRequest(e, t, r)) == null ? n == null ? null : void n(null) : n == null ? this.send(i, r, n) : void this.send(i, r, n);
|
|
1312
1312
|
};
|
|
1313
1313
|
var u = function() {};
|
|
1314
1314
|
u.WEB_LIBRARY_OS_NOT_SUPPORTED = 131072, u.WEB_LIBRARY_NOT_INSTALLED_OR_RUN = 131073, u.WEB_LIBRARY_JAVA_APPLET_NOT_LOADED = 131074, u.WEB_LIBRARY_INSTALLED_VERSION_NOT_SUPPORTED = 131075, u.WEB_LIBRARY_INSTALL_PACKAGE = 131076, u.WEB_LIBRARY_UPDATE_PACKAGE = 131077, u.WEB_LIBRARY_USER_MANUAL = 131078, u.WEB_LIBRARY_WEB_EXTENSION_INSTALL_PACKAGE = 131079, u.WEB_LIBRARY_CHECK_JRE_VERSION = 131080, u.WEB_LIBRARY_WEB_EXTENSION_NOT_INSTALLED_OR_RUN = 131081, (u.DESCRIPTIONS = [])[u.WEB_LIBRARY_OS_NOT_SUPPORTED] = [
|
|
@@ -1631,8 +1631,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
1631
1631
|
if (this.className != e.className) throw "invalid class";
|
|
1632
1632
|
for (var t in this.fields) this[t] = e[t];
|
|
1633
1633
|
}, h.prototype.encode = function() {
|
|
1634
|
-
var e, t;
|
|
1635
|
-
for (var n in
|
|
1634
|
+
var e, t = {};
|
|
1635
|
+
for (var n in e = {}, this.fields) t[n] = this[n] == null ? null : m(this[n]) ? this[n].encode() : this.fields[n] == "byteArray" ? this.base64Coder.encode(this[n]) : this.fields[n] == "time" ? this.dateCoder.encode(this[n]) : this[n];
|
|
1636
1636
|
return e.className = this.className, e.classVersion = this.classVersion, e.classFields = t, e;
|
|
1637
1637
|
}, h.prototype.decode = function(e) {
|
|
1638
1638
|
try {
|
|
@@ -3389,32 +3389,32 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3389
3389
|
default: return null;
|
|
3390
3390
|
}
|
|
3391
3391
|
}, $.prototype.GetInstallPath = function(e, t) {
|
|
3392
|
-
var n;
|
|
3393
|
-
return
|
|
3392
|
+
var n = this._funcMakeParams(null);
|
|
3393
|
+
return this._funcCall("GetInstallPath", n, e, t, null);
|
|
3394
3394
|
}, $.prototype.SelectFile = function(e, t, n, r) {
|
|
3395
3395
|
return this.SelectFileEx(e, t, null, null, null, null, n, r);
|
|
3396
3396
|
}, $.prototype.SelectFileEx = function(e, t, n, r, i, a, o, s) {
|
|
3397
|
-
var c
|
|
3398
|
-
return c = this._funcMakeParams([
|
|
3397
|
+
var c = this._funcMakeParams([
|
|
3399
3398
|
e,
|
|
3400
3399
|
t,
|
|
3401
3400
|
n,
|
|
3402
3401
|
r,
|
|
3403
3402
|
i,
|
|
3404
3403
|
a
|
|
3405
|
-
])
|
|
3404
|
+
]);
|
|
3405
|
+
return this._funcCall("SelectFile", c, o, s, null);
|
|
3406
3406
|
}, $.prototype.SelectFolder = function(e, t) {
|
|
3407
3407
|
return this.SelectFolderEx(null, null, null, e, t);
|
|
3408
3408
|
}, $.prototype.SelectFolderEx = function(e, t, n, r, i) {
|
|
3409
|
-
var a
|
|
3410
|
-
return a = this._funcMakeParams([
|
|
3409
|
+
var a = this._funcMakeParams([
|
|
3411
3410
|
e,
|
|
3412
3411
|
t,
|
|
3413
3412
|
n
|
|
3414
|
-
])
|
|
3413
|
+
]);
|
|
3414
|
+
return this._funcCall("SelectFolder", a, r, i, null);
|
|
3415
3415
|
}, $.prototype.CreateFolder = function(e, t, n) {
|
|
3416
|
-
var r;
|
|
3417
|
-
return
|
|
3416
|
+
var r = this._funcMakeParams([e]);
|
|
3417
|
+
return this._funcCall("CreateFolder", r, t, n, null);
|
|
3418
3418
|
}, $.prototype.ReadFile = function(e, t, n) {
|
|
3419
3419
|
var r = this.IsAsync(t, n), i = this, a = i.EU_FILE_PROCESS_CHUNK_SIZE;
|
|
3420
3420
|
if (!r) {
|
|
@@ -3457,22 +3457,22 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3457
3457
|
d == 0 && t.length != 0 || a.WriteFileWithOffset(e, u * o, a.Copy(t, u * o, d));
|
|
3458
3458
|
}
|
|
3459
3459
|
}, $.prototype.GetFileSize = function(e, t, n) {
|
|
3460
|
-
var r;
|
|
3461
|
-
return
|
|
3460
|
+
var r = this._funcMakeParams([e]);
|
|
3461
|
+
return this._funcCall("GetFileSize", r, t, n, null);
|
|
3462
3462
|
}, $.prototype.ReadFileWithOffset = function(e, t, n, r, i) {
|
|
3463
|
-
var a
|
|
3464
|
-
return a = this._funcMakeParams([
|
|
3463
|
+
var a = this._funcMakeParams([
|
|
3465
3464
|
e,
|
|
3466
3465
|
t,
|
|
3467
3466
|
n
|
|
3468
|
-
])
|
|
3467
|
+
]);
|
|
3468
|
+
return this._funcCall("ReadFileWithOffset", a, r, i, null);
|
|
3469
3469
|
}, $.prototype.WriteFileWithOffset = function(e, t, n, r, i) {
|
|
3470
|
-
var a
|
|
3471
|
-
return a = this._funcMakeParams([
|
|
3470
|
+
var a = this._funcMakeParams([
|
|
3472
3471
|
e,
|
|
3473
3472
|
t,
|
|
3474
3473
|
new g(n)
|
|
3475
|
-
])
|
|
3474
|
+
]);
|
|
3475
|
+
return this._funcCall("WriteFileWithOffset", a, r, i, null);
|
|
3476
3476
|
}, $.prototype.DeleteFile = function(e, t, n) {
|
|
3477
3477
|
var r = this._funcMakeParams([e]);
|
|
3478
3478
|
this._funcCall("DeleteFile", r, t, n, null);
|
|
@@ -3504,11 +3504,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3504
3504
|
i || this.RaiseError(Z.ERROR_LIBRARY_VERSION_NOT_SUPPORTED, "");
|
|
3505
3505
|
}
|
|
3506
3506
|
}, $.prototype.GetVersion = function(e, t) {
|
|
3507
|
-
var n;
|
|
3508
|
-
return
|
|
3507
|
+
var n = this._funcMakeParams(null);
|
|
3508
|
+
return this._funcCall("GetVersion", n, e, t, null);
|
|
3509
3509
|
}, $.prototype.IsInitialized = function(e, t) {
|
|
3510
|
-
var n;
|
|
3511
|
-
return
|
|
3510
|
+
var n = this._funcMakeParams(null);
|
|
3511
|
+
return this._funcCall("IsInitialized", n, e, t, null);
|
|
3512
3512
|
}, $.prototype.Initialize = function(e, t) {
|
|
3513
3513
|
var n, r = this, i = this.IsAsync(e, t);
|
|
3514
3514
|
n = this._funcMakeParams(null), this._funcCall("Initialize", n, i ? function() {
|
|
@@ -3544,8 +3544,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3544
3544
|
var i;
|
|
3545
3545
|
typeof t == "boolean" && (t = +!!t), i = this._funcMakeParams([e, t]), this._funcCall("SetRuntimeParameter", i, n, r, null);
|
|
3546
3546
|
}, $.prototype.GetStorageParameter = function(e, t, n, r) {
|
|
3547
|
-
var i;
|
|
3548
|
-
return
|
|
3547
|
+
var i = this._funcMakeParams([e, t]);
|
|
3548
|
+
return this._funcCall("GetStorageParameter", i, n, r, null);
|
|
3549
3549
|
}, $.prototype.SetStorageParameter = function(e, t, n, r, i) {
|
|
3550
3550
|
var a = this._funcMakeParams([
|
|
3551
3551
|
e,
|
|
@@ -3598,8 +3598,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3598
3598
|
var n = this._funcMakeParams(null);
|
|
3599
3599
|
this._funcCall("SetSettings", n, e, t, null);
|
|
3600
3600
|
}, $.prototype.DoesNeedSetSettings = function(e, t) {
|
|
3601
|
-
var n;
|
|
3602
|
-
return
|
|
3601
|
+
var n = this._funcMakeParams(null);
|
|
3602
|
+
return this._funcCall("DoesNeedSetSettings", n, e, t, null);
|
|
3603
3603
|
}, $.prototype.InitializeMandatorySettings = function(e, t) {
|
|
3604
3604
|
var n = this;
|
|
3605
3605
|
if (this.IsAsync(e, t)) o(function(e) {
|
|
@@ -3648,59 +3648,59 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3648
3648
|
}, $.prototype.CreateModeSettings = function() {
|
|
3649
3649
|
return new w();
|
|
3650
3650
|
}, $.prototype.GetModeSettings = function(e, t) {
|
|
3651
|
-
var n;
|
|
3652
|
-
return
|
|
3651
|
+
var n = this._funcMakeParams(null);
|
|
3652
|
+
return this._funcCall("GetModeSettings", n, e, t, null);
|
|
3653
3653
|
}, $.prototype.SetModeSettings = function(e, t, n) {
|
|
3654
3654
|
var r = this._funcMakeParams([e]);
|
|
3655
3655
|
this._funcCall("SetModeSettings", r, t, n, null);
|
|
3656
3656
|
}, $.prototype.CreateKeyMediaSettings = function() {
|
|
3657
3657
|
return new D();
|
|
3658
3658
|
}, $.prototype.GetKeyMediaSettings = function(e, t) {
|
|
3659
|
-
var n;
|
|
3660
|
-
return
|
|
3659
|
+
var n = this._funcMakeParams(null);
|
|
3660
|
+
return this._funcCall("GetKeyMediaSettings", n, e, t, null);
|
|
3661
3661
|
}, $.prototype.SetKeyMediaSettings = function(e, t, n) {
|
|
3662
3662
|
var r = this._funcMakeParams([e]);
|
|
3663
3663
|
this._funcCall("SetKeyMediaSettings", r, t, n, null);
|
|
3664
3664
|
}, $.prototype.CreateFileStoreSettings = function() {
|
|
3665
3665
|
return new v();
|
|
3666
3666
|
}, $.prototype.GetFileStoreSettings = function(e, t) {
|
|
3667
|
-
var n;
|
|
3668
|
-
return
|
|
3667
|
+
var n = this._funcMakeParams(null);
|
|
3668
|
+
return this._funcCall("GetFileStoreSettings", n, e, t, null);
|
|
3669
3669
|
}, $.prototype.SetFileStoreSettings = function(e, t, n) {
|
|
3670
3670
|
var r = this._funcMakeParams([e]);
|
|
3671
3671
|
this._funcCall("SetFileStoreSettings", r, t, n, null);
|
|
3672
3672
|
}, $.prototype.CreateProxySettings = function() {
|
|
3673
3673
|
return new y();
|
|
3674
3674
|
}, $.prototype.GetProxySettings = function(e, t) {
|
|
3675
|
-
var n;
|
|
3676
|
-
return
|
|
3675
|
+
var n = this._funcMakeParams(null);
|
|
3676
|
+
return this._funcCall("GetProxySettings", n, e, t, null);
|
|
3677
3677
|
}, $.prototype.SetProxySettings = function(e, t, n) {
|
|
3678
3678
|
var r = this._funcMakeParams([e]);
|
|
3679
3679
|
this._funcCall("SetProxySettings", r, t, n, null);
|
|
3680
3680
|
}, $.prototype.CreateOCSPSettings = function() {
|
|
3681
3681
|
return new x();
|
|
3682
3682
|
}, $.prototype.GetOCSPSettings = function(e, t) {
|
|
3683
|
-
var n;
|
|
3684
|
-
return
|
|
3683
|
+
var n = this._funcMakeParams(null);
|
|
3684
|
+
return this._funcCall("GetOCSPSettings", n, e, t, null);
|
|
3685
3685
|
}, $.prototype.SetOCSPSettings = function(e, t, n) {
|
|
3686
3686
|
var r = this._funcMakeParams([e]);
|
|
3687
3687
|
this._funcCall("SetOCSPSettings", r, t, n, null);
|
|
3688
3688
|
}, $.prototype.CreateOCSPAccessInfoModeSettings = function() {
|
|
3689
3689
|
return new T();
|
|
3690
3690
|
}, $.prototype.GetOCSPAccessInfoModeSettings = function(e, t) {
|
|
3691
|
-
var n;
|
|
3692
|
-
return
|
|
3691
|
+
var n = this._funcMakeParams(null);
|
|
3692
|
+
return this._funcCall("GetOCSPAccessInfoModeSettings", n, e, t, null);
|
|
3693
3693
|
}, $.prototype.SetOCSPAccessInfoModeSettings = function(e, t, n) {
|
|
3694
3694
|
var r = this._funcMakeParams([e]);
|
|
3695
3695
|
this._funcCall("SetOCSPAccessInfoModeSettings", r, t, n, null);
|
|
3696
3696
|
}, $.prototype.CreateOCSPAccessInfoSettings = function() {
|
|
3697
3697
|
return new E();
|
|
3698
3698
|
}, $.prototype.EnumOCSPAccessInfoSettings = function(e, t, n) {
|
|
3699
|
-
var r;
|
|
3700
|
-
return
|
|
3699
|
+
var r = this._funcMakeParams([e]);
|
|
3700
|
+
return this._funcCall("EnumOCSPAccessInfoSettings", r, t, n, null);
|
|
3701
3701
|
}, $.prototype.GetOCSPAccessInfoSettings = function(e, t, n) {
|
|
3702
|
-
var r;
|
|
3703
|
-
return
|
|
3702
|
+
var r = this._funcMakeParams([e]);
|
|
3703
|
+
return this._funcCall("GetOCSPAccessInfoSettings", r, t, n, null);
|
|
3704
3704
|
}, $.prototype.SetOCSPAccessInfoSettings = function(e, t, n) {
|
|
3705
3705
|
var r, i = this, a = i.IsAsync(t, n);
|
|
3706
3706
|
if (e = Array.isArray(e) ? e : [e], a) {
|
|
@@ -3717,38 +3717,38 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3717
3717
|
}, $.prototype.CreateTSPSettings = function() {
|
|
3718
3718
|
return new b();
|
|
3719
3719
|
}, $.prototype.GetTSPSettings = function(e, t) {
|
|
3720
|
-
var n;
|
|
3721
|
-
return
|
|
3720
|
+
var n = this._funcMakeParams(null);
|
|
3721
|
+
return this._funcCall("GetTSPSettings", n, e, t, null);
|
|
3722
3722
|
}, $.prototype.SetTSPSettings = function(e, t, n) {
|
|
3723
3723
|
var r = this._funcMakeParams([e]);
|
|
3724
3724
|
this._funcCall("SetTSPSettings", r, t, n, null);
|
|
3725
3725
|
}, $.prototype.CreateLDAPSettings = function() {
|
|
3726
3726
|
return new S();
|
|
3727
3727
|
}, $.prototype.GetLDAPSettings = function(e, t) {
|
|
3728
|
-
var n;
|
|
3729
|
-
return
|
|
3728
|
+
var n = this._funcMakeParams(null);
|
|
3729
|
+
return this._funcCall("GetLDAPSettings", n, e, t, null);
|
|
3730
3730
|
}, $.prototype.SetLDAPSettings = function(e, t, n) {
|
|
3731
3731
|
var r = this._funcMakeParams([e]);
|
|
3732
3732
|
this._funcCall("SetLDAPSettings", r, t, n, null);
|
|
3733
3733
|
}, $.prototype.CreateCMPSettings = function() {
|
|
3734
3734
|
return new C();
|
|
3735
3735
|
}, $.prototype.GetCMPSettings = function(e, t) {
|
|
3736
|
-
var n;
|
|
3737
|
-
return
|
|
3736
|
+
var n = this._funcMakeParams(null);
|
|
3737
|
+
return this._funcCall("GetCMPSettings", n, e, t, null);
|
|
3738
3738
|
}, $.prototype.SetCMPSettings = function(e, t, n) {
|
|
3739
3739
|
var r = this._funcMakeParams([e]);
|
|
3740
3740
|
this._funcCall("SetCMPSettings", r, t, n, null);
|
|
3741
3741
|
}, $.prototype.GetSystemProxySettings = function(e, t) {
|
|
3742
|
-
var n;
|
|
3743
|
-
return
|
|
3742
|
+
var n = this._funcMakeParams(null);
|
|
3743
|
+
return this._funcCall("GetSystemProxySettings", n, e, t, null);
|
|
3744
3744
|
}, $.prototype.SetOCSPResponseExpireTime = function(e, t, n) {
|
|
3745
3745
|
var r = this._funcMakeParams([e]);
|
|
3746
3746
|
this._funcCall("SetOCSPResponseExpireTime", r, t, n, null);
|
|
3747
3747
|
}, $.prototype.CreateTSLSettings = function() {
|
|
3748
3748
|
return new O();
|
|
3749
3749
|
}, $.prototype.GetTSLSettings = function(e, t) {
|
|
3750
|
-
var n;
|
|
3751
|
-
return
|
|
3750
|
+
var n = this._funcMakeParams(null);
|
|
3751
|
+
return this._funcCall("GetTSLSettings", n, e, t, null);
|
|
3752
3752
|
}, $.prototype.SetTSLSettings = function(e, t, n) {
|
|
3753
3753
|
var r = this._funcMakeParams([e]);
|
|
3754
3754
|
this._funcCall("SetTSLSettings", r, t, n, null);
|
|
@@ -3759,8 +3759,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3759
3759
|
var n = this._funcMakeParams(null);
|
|
3760
3760
|
this._funcCall("ShowCertificates", n, e, t, null);
|
|
3761
3761
|
}, $.prototype.SelectCertificateInfo = function(e, t) {
|
|
3762
|
-
var n;
|
|
3763
|
-
return
|
|
3762
|
+
var n = this._funcMakeParams(null);
|
|
3763
|
+
return this._funcCall("SelectCertificateInfo", n, e, t, null);
|
|
3764
3764
|
}, $.prototype.GetCertificatesCount = function(e, t, n, r) {
|
|
3765
3765
|
var i;
|
|
3766
3766
|
return typeof e == "number" && typeof t == "number" || (n = e, r = t, e = this.SUBJECT_TYPE_UNDIFFERENCED, t = this.SUBJECT_CA_SERVER_SUB_TYPE_UNDIFFERENCED), i = this._funcMakeParams([e, t]), this._funcCall("GetCertificatesCount", i, n, r, null);
|
|
@@ -3800,35 +3800,35 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3800
3800
|
}, $.prototype.EnumEndUserCertificatesCount = function(e, t, n) {
|
|
3801
3801
|
return this.EnumCertificates(e, this.SUBJECT_TYPE_END_USER, this.SUBJECT_CA_SERVER_SUB_TYPE_UNDIFFERENCED, t, n);
|
|
3802
3802
|
}, $.prototype.GetCertificateInfo = function(e, t, n, r) {
|
|
3803
|
-
var i;
|
|
3804
|
-
return
|
|
3803
|
+
var i = this._funcMakeParams([e, t]);
|
|
3804
|
+
return this._funcCall("GetCertificateInfo", i, n, r, null);
|
|
3805
3805
|
}, $.prototype.GetCertificateInfoEx = function(e, t, n, r) {
|
|
3806
|
-
var i;
|
|
3807
|
-
return
|
|
3806
|
+
var i = this._funcMakeParams([e, t]);
|
|
3807
|
+
return this._funcCall("GetCertificateInfoEx", i, n, r, null);
|
|
3808
3808
|
}, $.prototype.GetCertificate = function(e, t, n, r) {
|
|
3809
|
-
var i;
|
|
3810
|
-
return
|
|
3809
|
+
var i = this._funcMakeParams([e, t]);
|
|
3810
|
+
return this._funcCall("GetCertificate", i, n, r, null);
|
|
3811
3811
|
}, $.prototype.CheckCertificateByIssuerAndSerial = function(e, t, n, r) {
|
|
3812
|
-
var i;
|
|
3813
|
-
return
|
|
3812
|
+
var i = this._funcMakeParams([e, t]);
|
|
3813
|
+
return this._funcCall("CheckCertificateByIssuerAndSerial", i, n, r, null);
|
|
3814
3814
|
}, $.prototype.CheckCertificate = function(e, t, n) {
|
|
3815
|
-
var r;
|
|
3816
|
-
return
|
|
3815
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
3816
|
+
return this._funcCall("CheckCertificate", r, t, n, null);
|
|
3817
3817
|
}, $.prototype.ParseCertificate = function(e, t, n) {
|
|
3818
|
-
var r;
|
|
3819
|
-
return
|
|
3818
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
3819
|
+
return this._funcCall("ParseCertificate", r, t, n, null);
|
|
3820
3820
|
}, $.prototype.ParseCertificateEx = function(e, t, n) {
|
|
3821
|
-
var r;
|
|
3822
|
-
return
|
|
3821
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
3822
|
+
return this._funcCall("ParseCertificateEx", r, t, n, null);
|
|
3823
3823
|
}, $.prototype.SaveCertificate = function(e, t, n) {
|
|
3824
|
-
var r;
|
|
3825
|
-
return
|
|
3824
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
3825
|
+
return this._funcCall("SaveCertificate", r, t, n, null);
|
|
3826
3826
|
}, $.prototype.SaveCertificates = function(e, t, n) {
|
|
3827
|
-
var r;
|
|
3828
|
-
return
|
|
3827
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
3828
|
+
return this._funcCall("SaveCertificates", r, t, n, null);
|
|
3829
3829
|
}, $.prototype.SaveCertificatesEx = function(e, t, n, r) {
|
|
3830
|
-
var i;
|
|
3831
|
-
return
|
|
3830
|
+
var i = this._funcMakeParams([new g(e), t ? new g(t) : null]);
|
|
3831
|
+
return this._funcCall("SaveCertificatesEx", i, n, r, null);
|
|
3832
3832
|
}, $.prototype.GetCertificatesFromLDAPByEDRPOUCode = function(e, t, n, r, i, a, o) {
|
|
3833
3833
|
var s;
|
|
3834
3834
|
return r != null && i != null ? (r.className == "EndUserArrayList" && (r = r.m_array), i.className == "EndUserArrayList" && (i = i.m_array)) : (r = null, i = null), s = this._funcMakeParams([
|
|
@@ -3855,8 +3855,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3855
3855
|
r
|
|
3856
3856
|
]), this._funcCall("GetCertificateByNBUCode", o, i, a, null);
|
|
3857
3857
|
}, $.prototype.GetReceiversCertificates = function(e, t) {
|
|
3858
|
-
var n;
|
|
3859
|
-
return
|
|
3858
|
+
var n = this._funcMakeParams(null);
|
|
3859
|
+
return this._funcCall("GetReceiversCertificates", n, e, t, null);
|
|
3860
3860
|
}, $.prototype.GetReceiversCertificatesInArrayList = function(e, t) {
|
|
3861
3861
|
var n, r = this;
|
|
3862
3862
|
return n = this._funcMakeParams(null), this._funcCall("GetReceiversCertificates", n, e, t, function(e, t, n) {
|
|
@@ -3886,8 +3886,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3886
3886
|
}
|
|
3887
3887
|
});
|
|
3888
3888
|
}, $.prototype.GetCertificateByFingerprint = function(e, t, n) {
|
|
3889
|
-
var r;
|
|
3890
|
-
return
|
|
3889
|
+
var r = this._funcMakeParams([e]);
|
|
3890
|
+
return this._funcCall("GetCertificateByFingerprint", r, t, n, null);
|
|
3891
3891
|
}, $.prototype.GetCertificatesByEDRPOUAndDRFOCode = function(e, t, n, r) {
|
|
3892
3892
|
var i, a = this;
|
|
3893
3893
|
return i = this._funcMakeParams([e, t]), this._funcCall("GetCertificatesByEDRPOUAndDRFOCode", i, n, r, function(e, t, n) {
|
|
@@ -3906,17 +3906,17 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3906
3906
|
var n = this._funcMakeParams(null);
|
|
3907
3907
|
this._funcCall("ShowCRLs", n, e, t, null);
|
|
3908
3908
|
}, $.prototype.GetCRLsCount = function(e, t) {
|
|
3909
|
-
var n;
|
|
3910
|
-
return
|
|
3909
|
+
var n = this._funcMakeParams(null);
|
|
3910
|
+
return this._funcCall("GetCRLsCount", n, e, t, null);
|
|
3911
3911
|
}, $.prototype.EnumCRLs = function(e, t, n) {
|
|
3912
|
-
var r;
|
|
3913
|
-
return
|
|
3912
|
+
var r = this._funcMakeParams([e]);
|
|
3913
|
+
return this._funcCall("EnumCRLs", r, t, n, null);
|
|
3914
3914
|
}, $.prototype.GetCRLDetailedInfo = function(e, t, n, r) {
|
|
3915
|
-
var i;
|
|
3916
|
-
return
|
|
3915
|
+
var i = this._funcMakeParams([e, parseInt(t)]);
|
|
3916
|
+
return this._funcCall("GetCRLDetailedInfo", i, n, r, null);
|
|
3917
3917
|
}, $.prototype.SaveCRL = function(e, t, n, r) {
|
|
3918
|
-
var i;
|
|
3919
|
-
return
|
|
3918
|
+
var i = this._funcMakeParams([e, new g(t)]);
|
|
3919
|
+
return this._funcCall("SaveCRL", i, n, r, null);
|
|
3920
3920
|
}, $.prototype.GetTSPByAccessInfo = function(e, t, n, r, i, a) {
|
|
3921
3921
|
var o;
|
|
3922
3922
|
if (typeof t == "string" || (t = this._base64Encode(t, a)) != null) return o = this._funcMakeParams([
|
|
@@ -3933,12 +3933,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3933
3933
|
n
|
|
3934
3934
|
]), this._funcCall("CheckTSP", a, r, i, null));
|
|
3935
3935
|
}, $.prototype.GetOCSPResponseByAccessInfo = function(e, t, n, r, i) {
|
|
3936
|
-
var a
|
|
3937
|
-
return a = this._funcMakeParams([
|
|
3936
|
+
var a = this._funcMakeParams([
|
|
3938
3937
|
new g(e),
|
|
3939
3938
|
t,
|
|
3940
3939
|
n
|
|
3941
|
-
])
|
|
3940
|
+
]);
|
|
3941
|
+
return this._funcCall("GetOCSPResponseByAccessInfo", a, r, i, null);
|
|
3942
3942
|
}, $.prototype.CheckOCSPResponse = function(e, t, n, r) {
|
|
3943
3943
|
var i;
|
|
3944
3944
|
if (typeof e != "string" || (e = this._base64Decode(e, r)) != null) return t != null && typeof t != "string" && (t = this.m_dateCoder.encode(t)), i = this._funcMakeParams([new g(e), t]), this._funcCall("CheckOCSPResponse", i, n, r, null);
|
|
@@ -3948,14 +3948,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3948
3948
|
var r;
|
|
3949
3949
|
return typeof e != "string" && (e = null), r = this._funcMakeParams([e]), this._funcCall("GetPrivateKeyMedia", r, t, n, null);
|
|
3950
3950
|
}, $.prototype.EnumKeyMediaTypes = function(e, t, n) {
|
|
3951
|
-
var r;
|
|
3952
|
-
return
|
|
3951
|
+
var r = this._funcMakeParams([e]);
|
|
3952
|
+
return this._funcCall("EnumKeyMediaTypes", r, t, n, null);
|
|
3953
3953
|
}, $.prototype.EnumKeyMediaDevices = function(e, t, n, r) {
|
|
3954
|
-
var i;
|
|
3955
|
-
return
|
|
3954
|
+
var i = this._funcMakeParams([e, t]);
|
|
3955
|
+
return this._funcCall("EnumKeyMediaDevices", i, n, r, null);
|
|
3956
3956
|
}, $.prototype.GetKeyMediaTypes = function(e, t) {
|
|
3957
|
-
var n;
|
|
3958
|
-
return
|
|
3957
|
+
var n = this._funcMakeParams(null);
|
|
3958
|
+
return this._funcCall("GetKeyMediaTypes", n, e, t, null);
|
|
3959
3959
|
}, $.prototype.GetKeyMediaDevices = function(e, t, n) {
|
|
3960
3960
|
var r;
|
|
3961
3961
|
return typeof e == "number" && (e = [e]), e &&= new g(e), r = this._funcMakeParams([e]), this._funcCall("GetKeyMediaDevices", r, t, n, null);
|
|
@@ -3963,8 +3963,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3963
3963
|
var i, a;
|
|
3964
3964
|
return typeof e == "number" ? ((a = new _()).typeIndex = e, a.devIndex = t, a.password = "") : (a = e, r = n, n = t), i = this._funcMakeParams([a]), this._funcCall("GetKeyMediaDeviceInfo", i, n, r, null);
|
|
3965
3965
|
}, $.prototype.IsPrivateKeyReaded = function(e, t) {
|
|
3966
|
-
var n;
|
|
3967
|
-
return
|
|
3966
|
+
var n = this._funcMakeParams(null);
|
|
3967
|
+
return this._funcCall("IsPrivateKeyReaded", n, e, t, null);
|
|
3968
3968
|
}, $.prototype.ReadPrivateKey = function(e, t) {
|
|
3969
3969
|
var n = this._funcMakeParams(null);
|
|
3970
3970
|
this._funcCall("ReadPrivateKey", n, e, t, null);
|
|
@@ -3981,12 +3981,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
3981
3981
|
var o, s;
|
|
3982
3982
|
return typeof t == "number" ? ((s = new _()).typeIndex = t, s.devIndex = n, s.password = r) : (s = t, i = n, a = r), o = this._funcMakeParams([e, s]), this._funcCall("CtxReadPrivateKey", o, i, a, null);
|
|
3983
3983
|
}, $.prototype.CtxReadPrivateKeyBinary = function(e, t, n, r, i) {
|
|
3984
|
-
var a
|
|
3985
|
-
return a = this._funcMakeParams([
|
|
3984
|
+
var a = this._funcMakeParams([
|
|
3986
3985
|
e,
|
|
3987
3986
|
new g(t),
|
|
3988
3987
|
n
|
|
3989
|
-
])
|
|
3988
|
+
]);
|
|
3989
|
+
return this._funcCall("CtxReadPrivateKeyBinary", a, r, i, null);
|
|
3990
3990
|
}, $.prototype.ResetPrivateKey = function(e, t) {
|
|
3991
3991
|
var n = this._funcMakeParams(null);
|
|
3992
3992
|
this._funcCall("ResetPrivateKey", n, e, t, null);
|
|
@@ -4000,45 +4000,45 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4000
4000
|
var i;
|
|
4001
4001
|
return typeof e == "number" && typeof t == "number" || (n = e, r = t, e = null, t = null), i = this._funcMakeParams([e, t]), this._funcCall("GetOwnCertificate", i, n, r, null);
|
|
4002
4002
|
}, $.prototype.EnumOwnCertificates = function(e, t, n) {
|
|
4003
|
-
var r;
|
|
4004
|
-
return
|
|
4003
|
+
var r = this._funcMakeParams([e]);
|
|
4004
|
+
return this._funcCall("EnumOwnCertificates", r, t, n, null);
|
|
4005
4005
|
}, $.prototype.GetPrivateKeyOwnerInfo = function(e, t) {
|
|
4006
|
-
var n;
|
|
4007
|
-
return
|
|
4006
|
+
var n = this._funcMakeParams(null);
|
|
4007
|
+
return this._funcCall("GetPrivateKeyOwnerInfo", n, e, t, null);
|
|
4008
4008
|
}, $.prototype.CtxEnumOwnCertificates = function(e, t, n, r) {
|
|
4009
|
-
var i;
|
|
4010
|
-
return
|
|
4009
|
+
var i = this._funcMakeParams([e, t]);
|
|
4010
|
+
return this._funcCall("CtxEnumOwnCertificates", i, n, r, null);
|
|
4011
4011
|
}, $.prototype.CtxGetOwnCertificate = function(e, t, n, r, i) {
|
|
4012
|
-
var a
|
|
4013
|
-
return a = this._funcMakeParams([
|
|
4012
|
+
var a = this._funcMakeParams([
|
|
4014
4013
|
e,
|
|
4015
4014
|
t,
|
|
4016
4015
|
n
|
|
4017
|
-
])
|
|
4016
|
+
]);
|
|
4017
|
+
return this._funcCall("CtxGetOwnCertificate", a, r, i, null);
|
|
4018
4018
|
}, $.prototype.CtxEnumPrivateKeyInfo = function(e, t, n, r) {
|
|
4019
|
-
var i;
|
|
4020
|
-
return
|
|
4019
|
+
var i = this._funcMakeParams([e, t]);
|
|
4020
|
+
return this._funcCall("CtxEnumPrivateKeyInfo", i, n, r, null);
|
|
4021
4021
|
}, $.prototype.CtxExportPrivateKeyPFXContainer = function(e, t, n, r, i, a, o) {
|
|
4022
|
-
var s
|
|
4023
|
-
return s = this._funcMakeParams([
|
|
4022
|
+
var s = this._funcMakeParams([
|
|
4024
4023
|
e,
|
|
4025
4024
|
t,
|
|
4026
4025
|
n,
|
|
4027
4026
|
r,
|
|
4028
4027
|
i
|
|
4029
|
-
])
|
|
4028
|
+
]);
|
|
4029
|
+
return this._funcCall("CtxExportPrivateKeyPFXContainer", s, a, o, null);
|
|
4030
4030
|
}, $.prototype.GetKeyInfo = function(e, t, n) {
|
|
4031
|
-
var r;
|
|
4032
|
-
return
|
|
4031
|
+
var r = this._funcMakeParams([e]);
|
|
4032
|
+
return this._funcCall("GetKeyInfo", r, t, n, null);
|
|
4033
4033
|
}, $.prototype.GetKeyInfoSilently = function(e, t, n, r, i) {
|
|
4034
4034
|
var a;
|
|
4035
4035
|
return (a = new _()).typeIndex = e, a.devIndex = t, a.password = n, this.GetKeyInfo(a, r, i);
|
|
4036
4036
|
}, $.prototype.GetKeyInfoBinary = function(e, t, n, r) {
|
|
4037
|
-
var i;
|
|
4038
|
-
return
|
|
4037
|
+
var i = this._funcMakeParams([new g(e), t]);
|
|
4038
|
+
return this._funcCall("GetKeyInfoBinary", i, n, r, null);
|
|
4039
4039
|
}, $.prototype.GetKeyInfoFile = function(e, t, n, r) {
|
|
4040
|
-
var i;
|
|
4041
|
-
return
|
|
4040
|
+
var i = this._funcMakeParams([e, t]);
|
|
4041
|
+
return this._funcCall("GetKeyInfoFile", i, n, r, null);
|
|
4042
4042
|
}, $.prototype.GetCertificateByKeyInfo = function(e, t, n, r) {
|
|
4043
4043
|
var i, a = [];
|
|
4044
4044
|
return typeof e == "number" && typeof t == "number" || (r = n, n = t), typeof e == "number" && typeof t == "number" ? (a.push(e), a.push(t), a.push(null)) : (a.push(null), a.push(null), a.push(new g(e))), i = this._funcMakeParams(a), this._funcCall("GetCertificateByKeyInfo", i, n, r, null);
|
|
@@ -4050,24 +4050,24 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4050
4050
|
n
|
|
4051
4051
|
]), this._funcCall("GetCertificatesByKeyInfo", a, r, i, null);
|
|
4052
4052
|
}, $.prototype.ChangeSoftwarePrivateKeyPassword = function(e, t, n, r, i) {
|
|
4053
|
-
var a
|
|
4054
|
-
return a = this._funcMakeParams([
|
|
4053
|
+
var a = this._funcMakeParams([
|
|
4055
4054
|
new g(e),
|
|
4056
4055
|
t,
|
|
4057
4056
|
n
|
|
4058
|
-
])
|
|
4057
|
+
]);
|
|
4058
|
+
return this._funcCall("ChangeSoftwarePrivateKeyPassword", a, r, i, null);
|
|
4059
4059
|
}, $.prototype.EnumJKSPrivateKeys = function(e, t, n, r) {
|
|
4060
|
-
var i;
|
|
4061
|
-
return
|
|
4060
|
+
var i = this._funcMakeParams([new g(e), t]);
|
|
4061
|
+
return this._funcCall("EnumJKSPrivateKeys", i, n, r, null);
|
|
4062
4062
|
}, $.prototype.EnumJKSPrivateKeysFile = function(e, t, n, r) {
|
|
4063
|
-
var i;
|
|
4064
|
-
return
|
|
4063
|
+
var i = this._funcMakeParams([e, t]);
|
|
4064
|
+
return this._funcCall("EnumJKSPrivateKeysFile", i, n, r, null);
|
|
4065
4065
|
}, $.prototype.GetJKSPrivateKey = function(e, t, n, r) {
|
|
4066
|
-
var i;
|
|
4067
|
-
return
|
|
4066
|
+
var i = this._funcMakeParams([new g(e), t]);
|
|
4067
|
+
return this._funcCall("GetJKSPrivateKey", i, n, r, null);
|
|
4068
4068
|
}, $.prototype.GetJKSPrivateKeyFile = function(e, t, n, r) {
|
|
4069
|
-
var i;
|
|
4070
|
-
return
|
|
4069
|
+
var i = this._funcMakeParams([e, t]);
|
|
4070
|
+
return this._funcCall("GetJKSPrivateKeyFile", i, n, r, null);
|
|
4071
4071
|
}, $.prototype.CreatePrivateKeyInfo = function() {
|
|
4072
4072
|
return new R();
|
|
4073
4073
|
}, $.prototype.CreateEndUserInfo = function() {
|
|
@@ -4122,12 +4122,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4122
4122
|
var y = this.MakeError(Z.ERROR_BAD_PARAMETER, "");
|
|
4123
4123
|
throw new Q(y.errorCode, y.message);
|
|
4124
4124
|
}, $.prototype.GetCRInfo = function(e, t, n, r, i) {
|
|
4125
|
-
var a
|
|
4126
|
-
return a = this._funcMakeParams([
|
|
4125
|
+
var a = this._funcMakeParams([
|
|
4127
4126
|
new g(e),
|
|
4128
4127
|
t,
|
|
4129
4128
|
n
|
|
4130
|
-
])
|
|
4129
|
+
]);
|
|
4130
|
+
return this._funcCall("GetCRInfo", a, r, i, null);
|
|
4131
4131
|
}, $.prototype.IsHardwareKeyMedia = function(e, t, n, r, i) {
|
|
4132
4132
|
var a, o;
|
|
4133
4133
|
return typeof e == "number" ? ((o = new _()).typeIndex = e, o.devIndex = t, o.password = n) : (o = null, r = e, i = t), a = this._funcMakeParams([o]), this._funcCall("IsHardwareKeyMedia", a, r, i, null);
|
|
@@ -4196,8 +4196,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4196
4196
|
m
|
|
4197
4197
|
]), this._funcCall("MakeNewCertificateEx", v, h, _, null);
|
|
4198
4198
|
}, $.prototype.MakeNewOwnCertificate = function(e, t, n, r, i, a, o, s, c, l) {
|
|
4199
|
-
var u
|
|
4200
|
-
return u = this._funcMakeParams([
|
|
4199
|
+
var u = this._funcMakeParams([
|
|
4201
4200
|
e,
|
|
4202
4201
|
t,
|
|
4203
4202
|
n,
|
|
@@ -4206,10 +4205,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4206
4205
|
a,
|
|
4207
4206
|
o,
|
|
4208
4207
|
s
|
|
4209
|
-
])
|
|
4208
|
+
]);
|
|
4209
|
+
return this._funcCall("MakeNewOwnCertificate", u, c, l, null);
|
|
4210
4210
|
}, $.prototype.CtxMakeNewOwnCertificate = function(e, t, n, r, i, a, o, s, c, l, u) {
|
|
4211
|
-
var d
|
|
4212
|
-
return d = this._funcMakeParams([
|
|
4211
|
+
var d = this._funcMakeParams([
|
|
4213
4212
|
e,
|
|
4214
4213
|
t,
|
|
4215
4214
|
n,
|
|
@@ -4219,10 +4218,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4219
4218
|
o,
|
|
4220
4219
|
s,
|
|
4221
4220
|
c
|
|
4222
|
-
])
|
|
4221
|
+
]);
|
|
4222
|
+
return this._funcCall("CtxMakeNewOwnCertificate", d, l, u, null);
|
|
4223
4223
|
}, $.prototype.CtxMakeNewOwnCertificateEx = function(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
4224
|
-
var p
|
|
4225
|
-
return p = this._funcMakeParams([
|
|
4224
|
+
var p = this._funcMakeParams([
|
|
4226
4225
|
e,
|
|
4227
4226
|
t,
|
|
4228
4227
|
n,
|
|
@@ -4234,7 +4233,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4234
4233
|
c,
|
|
4235
4234
|
l,
|
|
4236
4235
|
u
|
|
4237
|
-
])
|
|
4236
|
+
]);
|
|
4237
|
+
return this._funcCall("CtxMakeNewOwnCertificateEx", p, d, f, null);
|
|
4238
4238
|
}, $.prototype.CtxMakeNewOwnCertificateWithCR = function(e, t, n, r, i, a, o) {
|
|
4239
4239
|
var s;
|
|
4240
4240
|
return t != null && (t = new g(t)), n != null && (n = new g(n)), r != null && (r = new g(r)), i != null && (i = new g(i)), s = this._funcMakeParams([
|
|
@@ -4257,21 +4257,21 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4257
4257
|
s
|
|
4258
4258
|
]), this._funcCall("CtxMakeDeviceCertificate", u, c, l, null);
|
|
4259
4259
|
}, $.prototype.GetOwnEUserParams = function(e, t) {
|
|
4260
|
-
var n;
|
|
4261
|
-
return
|
|
4260
|
+
var n = this._funcMakeParams(null);
|
|
4261
|
+
return this._funcCall("GetOwnEUserParams", n, e, t, null);
|
|
4262
4262
|
}, $.prototype.ModifyOwnEUserParams = function(e, t, n, r) {
|
|
4263
|
-
var i;
|
|
4264
|
-
return
|
|
4263
|
+
var i = this._funcMakeParams([e, t]);
|
|
4264
|
+
return this._funcCall("ModifyOwnEUserParams", i, n, r, null);
|
|
4265
4265
|
}, $.prototype.CtxGetOwnEUserParams = function(e, t, n) {
|
|
4266
|
-
var r;
|
|
4267
|
-
return
|
|
4266
|
+
var r = this._funcMakeParams([e]);
|
|
4267
|
+
return this._funcCall("CtxGetOwnEUserParams", r, t, n, null);
|
|
4268
4268
|
}, $.prototype.CtxModifyOwnEUserParams = function(e, t, n, r, i) {
|
|
4269
|
-
var a
|
|
4270
|
-
return a = this._funcMakeParams([
|
|
4269
|
+
var a = this._funcMakeParams([
|
|
4271
4270
|
e,
|
|
4272
4271
|
t,
|
|
4273
4272
|
n
|
|
4274
|
-
])
|
|
4273
|
+
]);
|
|
4274
|
+
return this._funcCall("CtxModifyOwnEUserParams", a, r, i, null);
|
|
4275
4275
|
}, $.prototype.Hash = function(e, t, n) {
|
|
4276
4276
|
var r;
|
|
4277
4277
|
if (typeof e != "string" || (e = this._stringToBytes(e, n)) != null) return r = this._funcMakeParams([new g(e)]), this._funcCall("Hash", r, t, n, null);
|
|
@@ -4279,8 +4279,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4279
4279
|
var a;
|
|
4280
4280
|
typeof t == "number" && typeof n == "number" || (r = t, i = n), typeof e == "string" && (e = this._stringToBytes(e, i)) == null || (typeof t == "number" && typeof n == "number" && (e = e.slice(t, t + n)), a = this._funcMakeParams([new g(e)]), this._funcCall("ContinueHash", a, r, i, null));
|
|
4281
4281
|
}, $.prototype.EndHash = function(e, t) {
|
|
4282
|
-
var n;
|
|
4283
|
-
return
|
|
4282
|
+
var n = this._funcMakeParams(null);
|
|
4283
|
+
return this._funcCall("EndHash", n, e, t, null);
|
|
4284
4284
|
}, $.prototype.HashWithParams = function(e, t, n, r) {
|
|
4285
4285
|
var i;
|
|
4286
4286
|
if (typeof t != "string" || (t = this._stringToBytes(t, r)) != null) return i = this._funcMakeParams([new g(e), new g(t)]), this._funcCall("HashWithParams", i, n, r, null);
|
|
@@ -4288,11 +4288,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4288
4288
|
var r = this._funcMakeParams([new g(e)]);
|
|
4289
4289
|
this._funcCall("HashBeginWithParams", r, t, n, null);
|
|
4290
4290
|
}, $.prototype.HashFile = function(e, t, n) {
|
|
4291
|
-
var r;
|
|
4292
|
-
return
|
|
4291
|
+
var r = this._funcMakeParams([e]);
|
|
4292
|
+
return this._funcCall("HashFile", r, t, n, null);
|
|
4293
4293
|
}, $.prototype.HashFileWithParams = function(e, t, n, r) {
|
|
4294
|
-
var i;
|
|
4295
|
-
return
|
|
4294
|
+
var i = this._funcMakeParams([new g(e), t]);
|
|
4295
|
+
return this._funcCall("HashFileWithParams", i, n, r, null);
|
|
4296
4296
|
}, $.prototype.CtxHash = function(e, t, n, r, i, a) {
|
|
4297
4297
|
var s = this, c = this.IsAsync(i, a), l = s.EU_FILE_PROCESS_CHUNK_SIZE;
|
|
4298
4298
|
if (typeof r != "string" || (r = this._stringToBytes(r, a)) != null) {
|
|
@@ -4345,18 +4345,18 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4345
4345
|
}
|
|
4346
4346
|
}
|
|
4347
4347
|
}, $.prototype.CtxHashBegin = function(e, t, n, r, i) {
|
|
4348
|
-
var a
|
|
4349
|
-
return a = this._funcMakeParams([
|
|
4348
|
+
var a = this._funcMakeParams([
|
|
4350
4349
|
e,
|
|
4351
4350
|
t,
|
|
4352
4351
|
n ? new g(n) : null
|
|
4353
|
-
])
|
|
4352
|
+
]);
|
|
4353
|
+
return this._funcCall("CtxHashBegin", a, r, i, null);
|
|
4354
4354
|
}, $.prototype.CtxHashContinue = function(e, t, n, r) {
|
|
4355
4355
|
var i = this._funcMakeParams([e, new g(t)]);
|
|
4356
4356
|
this._funcCall("CtxHashContinue", i, n, r, null);
|
|
4357
4357
|
}, $.prototype.CtxHashEnd = function(e, t, n) {
|
|
4358
|
-
var r;
|
|
4359
|
-
return
|
|
4358
|
+
var r = this._funcMakeParams([e]);
|
|
4359
|
+
return this._funcCall("CtxHashEnd", r, t, n, null);
|
|
4360
4360
|
}, $.prototype.CtxHashFree = function(e, t, n) {
|
|
4361
4361
|
var r = this._funcMakeParams([e]);
|
|
4362
4362
|
this._funcCall("CtxHashFree", r, t, n, null);
|
|
@@ -4364,35 +4364,35 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4364
4364
|
var r = this._funcMakeParams([e]);
|
|
4365
4365
|
this._funcCall("ShowSignInfo", r, t, n, null);
|
|
4366
4366
|
}, $.prototype.IsSigned = function(e, t, n) {
|
|
4367
|
-
var r;
|
|
4368
|
-
return
|
|
4367
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
4368
|
+
return this._funcCall("IsSigned", r, t, n, null);
|
|
4369
4369
|
}, $.prototype.IsSignedFile = function(e, t, n) {
|
|
4370
|
-
var r;
|
|
4371
|
-
return
|
|
4370
|
+
var r = this._funcMakeParams([e]);
|
|
4371
|
+
return this._funcCall("IsSignedFile", r, t, n, null);
|
|
4372
4372
|
}, $.prototype.GetSignType = function(e, t, n, r) {
|
|
4373
4373
|
var i;
|
|
4374
4374
|
if (typeof t == "string" || (t = this._base64Encode(t, r)) != null) return i = this._funcMakeParams([e, t]), this._funcCall("GetSignType", i, n, r, null);
|
|
4375
4375
|
}, $.prototype.GetFileSignType = function(e, t, n, r) {
|
|
4376
|
-
var i;
|
|
4377
|
-
return
|
|
4376
|
+
var i = this._funcMakeParams([e, t]);
|
|
4377
|
+
return this._funcCall("GetFileSignType", i, n, r, null);
|
|
4378
4378
|
}, $.prototype.GetSignsCount = function(e, t, n) {
|
|
4379
4379
|
var r;
|
|
4380
4380
|
if (typeof e == "string" || (e = this._base64Encode(e, n)) != null) return r = this._funcMakeParams([e]), this._funcCall("GetSignsCount", r, t, n, null);
|
|
4381
4381
|
}, $.prototype.GetSignerInfo = function(e, t, n, r) {
|
|
4382
|
-
var i;
|
|
4383
|
-
return
|
|
4382
|
+
var i = this._funcMakeParams([e, t]);
|
|
4383
|
+
return this._funcCall("GetSignerInfo", i, n, r, null);
|
|
4384
4384
|
}, $.prototype.GetSignerCertificate = function(e, t, n, r) {
|
|
4385
|
-
var i;
|
|
4386
|
-
return
|
|
4385
|
+
var i = this._funcMakeParams([e, t]);
|
|
4386
|
+
return this._funcCall("GetSignerCertificate", i, n, r, null);
|
|
4387
4387
|
}, $.prototype.GetFileSignsCount = function(e, t, n) {
|
|
4388
|
-
var r;
|
|
4389
|
-
return
|
|
4388
|
+
var r = this._funcMakeParams([e]);
|
|
4389
|
+
return this._funcCall("GetFileSignsCount", r, t, n, null);
|
|
4390
4390
|
}, $.prototype.GetFileSignerInfo = function(e, t, n, r) {
|
|
4391
|
-
var i;
|
|
4392
|
-
return
|
|
4391
|
+
var i = this._funcMakeParams([e, t]);
|
|
4392
|
+
return this._funcCall("GetFileSignerInfo", i, n, r, null);
|
|
4393
4393
|
}, $.prototype.GetFileSignerCertificate = function(e, t, n, r) {
|
|
4394
|
-
var i;
|
|
4395
|
-
return
|
|
4394
|
+
var i = this._funcMakeParams([e, t]);
|
|
4395
|
+
return this._funcCall("GetFileSignerCertificate", i, n, r, null);
|
|
4396
4396
|
}, $.prototype.CtxGetSignerInfo = function(e, t, n, r, i) {
|
|
4397
4397
|
var a;
|
|
4398
4398
|
if (typeof n == "string" || (n = this._base64Encode(n, i)) != null) return a = this._funcMakeParams([
|
|
@@ -4410,8 +4410,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4410
4410
|
var a;
|
|
4411
4411
|
typeof t == "number" && typeof n == "number" || (r = t, i = n), typeof e == "string" && (e = this._stringToBytes(e, i)) == null || (typeof t == "number" && typeof n == "number" && (e = e.slice(t, t + n)), a = this._funcMakeParams([new g(e)]), this._funcCall("ContinueSign", a, r, i, null));
|
|
4412
4412
|
}, $.prototype.EndSign = function(e, t) {
|
|
4413
|
-
var n;
|
|
4414
|
-
return
|
|
4413
|
+
var n = this._funcMakeParams(null);
|
|
4414
|
+
return this._funcCall("EndSign", n, e, t, null);
|
|
4415
4415
|
}, $.prototype.BeginVerify = function(e, t, n) {
|
|
4416
4416
|
var r = this._funcMakeParams([e]);
|
|
4417
4417
|
this._funcCall("BeginVerify", r, t, n, null);
|
|
@@ -4422,8 +4422,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4422
4422
|
var r, i = [];
|
|
4423
4423
|
return typeof e != "boolean" && (n = t, t = e), typeof e == "boolean" ? i.push(null) : i.push(e), r = this._funcMakeParams(i), this._funcCall("EndVerify", r, t, n, null);
|
|
4424
4424
|
}, $.prototype.SignHash = function(e, t, n) {
|
|
4425
|
-
var r;
|
|
4426
|
-
return
|
|
4425
|
+
var r = this._funcMakeParams([e]);
|
|
4426
|
+
return this._funcCall("SignHash", r, t, n, null);
|
|
4427
4427
|
}, $.prototype.VerifyHash = function(e, t, n, r, i) {
|
|
4428
4428
|
var a, o = [];
|
|
4429
4429
|
return typeof n != "boolean" && (i = r, r = n), o.push(e), o.push(t), typeof n == "boolean" ? o.push(n) : o.push(null), a = this._funcMakeParams(o), this._funcCall("VerifyHash", a, r, i, null);
|
|
@@ -4457,11 +4457,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4457
4457
|
}, $.prototype.VerifyFileWithInternalSign = function(e, t, n, r, i) {
|
|
4458
4458
|
return this.VerifyFile(e, t, n, r, i);
|
|
4459
4459
|
}, $.prototype.IsAlreadySigned = function(e, t, n) {
|
|
4460
|
-
var r;
|
|
4461
|
-
return
|
|
4460
|
+
var r = this._funcMakeParams([e]);
|
|
4461
|
+
return this._funcCall("IsAlreadySigned", r, t, n, null);
|
|
4462
4462
|
}, $.prototype.IsFileAlreadySigned = function(e, t, n) {
|
|
4463
|
-
var r;
|
|
4464
|
-
return
|
|
4463
|
+
var r = this._funcMakeParams([e]);
|
|
4464
|
+
return this._funcCall("IsFileAlreadySigned", r, t, n, null);
|
|
4465
4465
|
}, $.prototype.AppendSign = function(e, t, n, r) {
|
|
4466
4466
|
var i;
|
|
4467
4467
|
if (!(typeof e == "string" && (e = this._stringToBytes(e, r)) == null || typeof t != "string" && (t = this._base64Encode(t, r)) == null)) return i = this._funcMakeParams([new g(e), t]), this._funcCall("AppendSign", i, n, r, null);
|
|
@@ -4496,13 +4496,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4496
4496
|
a.BytesToString(e, r, i);
|
|
4497
4497
|
}, i);
|
|
4498
4498
|
}, $.prototype.AppendSignFile = function(e, t, n, r, i, a) {
|
|
4499
|
-
var o
|
|
4500
|
-
return o = this._funcMakeParams([
|
|
4499
|
+
var o = this._funcMakeParams([
|
|
4501
4500
|
e,
|
|
4502
4501
|
t,
|
|
4503
4502
|
n,
|
|
4504
4503
|
r
|
|
4505
|
-
])
|
|
4504
|
+
]);
|
|
4505
|
+
return this._funcCall("AppendSignFile", o, i, a, null);
|
|
4506
4506
|
}, $.prototype.VerifyFileSpecific = function(e, t, n, r, i, a) {
|
|
4507
4507
|
var o, s = [];
|
|
4508
4508
|
return typeof r != "boolean" && (a = i, i = r), s.push(e), s.push(t), s.push(n), typeof r == "boolean" ? s.push(r) : s.push(null), o = this._funcMakeParams(s), this._funcCall("VerifyFileSpecific", o, i, a, null);
|
|
@@ -4514,8 +4514,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4514
4514
|
var r, i = [];
|
|
4515
4515
|
if (arguments.length == 2 && (n = t, t = e), typeof e != "string" || (e = this._stringToBytes(e, n)) != null) return arguments.length == 1 || arguments.length == 3 ? i.push(new g(e)) : i.push(null), r = this._funcMakeParams(i), this._funcCall("CreateEmptySign", r, t, n, null);
|
|
4516
4516
|
}, $.prototype.CreateSigner = function(e, t, n) {
|
|
4517
|
-
var r;
|
|
4518
|
-
return
|
|
4517
|
+
var r = this._funcMakeParams([e]);
|
|
4518
|
+
return this._funcCall("CreateSigner", r, t, n, null);
|
|
4519
4519
|
}, $.prototype.CreateSignerEx = function(e, t, n, r, i) {
|
|
4520
4520
|
var a;
|
|
4521
4521
|
if (typeof e == "string" || (e = this._base64Encode(e, i)) != null) return a = this._funcMakeParams([
|
|
@@ -4533,11 +4533,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4533
4533
|
var r;
|
|
4534
4534
|
if (typeof e == "string" || (e = this._base64Encode(e, n)) != null) return r = this._funcMakeParams([e]), this._funcCall("IsDataInSignedDataAvailable", r, t, n, null);
|
|
4535
4535
|
}, $.prototype.IsDataInSignedFileAvailable = function(e, t, n) {
|
|
4536
|
-
var r;
|
|
4537
|
-
return
|
|
4536
|
+
var r = this._funcMakeParams([e]);
|
|
4537
|
+
return this._funcCall("IsDataInSignedFileAvailable", r, t, n, null);
|
|
4538
4538
|
}, $.prototype.GetDataFromSignedData = function(e, t, n) {
|
|
4539
|
-
var r;
|
|
4540
|
-
return
|
|
4539
|
+
var r = this._funcMakeParams([e]);
|
|
4540
|
+
return this._funcCall("GetDataFromSignedData", r, t, n, null);
|
|
4541
4541
|
}, $.prototype.GetDataFromSignedFile = function(e, t, n, r) {
|
|
4542
4542
|
var i = this._funcMakeParams([e, t]);
|
|
4543
4543
|
this._funcCall("GetDataFromSignedFile", i, n, r, null);
|
|
@@ -4545,20 +4545,20 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4545
4545
|
var i;
|
|
4546
4546
|
if (typeof t == "string" || (t = this._base64Encode(t, r)) != null) return i = this._funcMakeParams([e, t]), this._funcCall("GetDataHashFromSignedDataEx", i, n, r, null);
|
|
4547
4547
|
}, $.prototype.GetDataHashFromSignedFileEx = function(e, t, n, r) {
|
|
4548
|
-
var i;
|
|
4549
|
-
return
|
|
4548
|
+
var i = this._funcMakeParams([e, t]);
|
|
4549
|
+
return this._funcCall("GetDataHashFromSignedFileEx", i, n, r, null);
|
|
4550
4550
|
}, $.prototype.GetCertificateFromSignedData = function(e, t, n, r) {
|
|
4551
4551
|
var i;
|
|
4552
4552
|
if (typeof t == "string" || (t = this._base64Encode(t, r)) != null) return i = this._funcMakeParams([e, t]), this._funcCall("GetCertificateFromSignedData", i, n, r, null);
|
|
4553
4553
|
}, $.prototype.GetCertificateFromSignedFile = function(e, t, n, r) {
|
|
4554
|
-
var i;
|
|
4555
|
-
return
|
|
4554
|
+
var i = this._funcMakeParams([e, t]);
|
|
4555
|
+
return this._funcCall("GetCertificateFromSignedFile", i, n, r, null);
|
|
4556
4556
|
}, $.prototype.GetSignTimeInfo = function(e, t, n, r) {
|
|
4557
4557
|
var i;
|
|
4558
4558
|
if (typeof t == "string" || (t = this._base64Encode(t, r)) != null) return i = this._funcMakeParams([e, t]), this._funcCall("GetSignTimeInfo", i, n, r, null);
|
|
4559
4559
|
}, $.prototype.GetFileSignTimeInfo = function(e, t, n, r) {
|
|
4560
|
-
var i;
|
|
4561
|
-
return
|
|
4560
|
+
var i = this._funcMakeParams([e, t]);
|
|
4561
|
+
return this._funcCall("GetFileSignTimeInfo", i, n, r, null);
|
|
4562
4562
|
}, $.prototype.VerifyHashOnTime = function(e, t, n, r, i, a, o) {
|
|
4563
4563
|
return this.VerifyHashOnTimeEx(e, t, n, r, r != null, !1, i, a, o);
|
|
4564
4564
|
}, $.prototype.VerifyHashOnTimeEx = function(e, t, n, r, i, a, o, s, c) {
|
|
@@ -4640,11 +4640,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4640
4640
|
}, $.prototype.ContinueSignCtxWithOffset = function(e, t, n, r, i, a) {
|
|
4641
4641
|
return t = t.slice(n, n + r), this.ContinueSignCtx(e, t, i, a);
|
|
4642
4642
|
}, $.prototype.EndSignCtx = function(e, t, n, r) {
|
|
4643
|
-
var i;
|
|
4644
|
-
return
|
|
4643
|
+
var i = this._funcMakeParams([e, t]);
|
|
4644
|
+
return this._funcCall("EndSignCtx", i, n, r, null);
|
|
4645
4645
|
}, $.prototype.BeginVerifyCtx = function(e, t, n) {
|
|
4646
|
-
var r;
|
|
4647
|
-
return
|
|
4646
|
+
var r = this._funcMakeParams([e]);
|
|
4647
|
+
return this._funcCall("BeginVerifyCtx", r, t, n, null);
|
|
4648
4648
|
}, $.prototype.ContinueVerifyCtx = function(e, t, n, r, i, a) {
|
|
4649
4649
|
var o;
|
|
4650
4650
|
typeof n == "number" && typeof r == "number" || (i = n, a = r), typeof t == "string" && (t = this._stringToBytes(t, a)) == null || (typeof n == "number" && typeof r == "number" && (t = t.slice(n, n + r)), o = this._funcMakeParams([e, new g(t)]), this._funcCall("ContinueVerifyCtx", o, i, a, null));
|
|
@@ -4655,8 +4655,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4655
4655
|
var r = this._funcMakeParams([e]);
|
|
4656
4656
|
this._funcCall("ResetOperationCtx", r, t, n, null);
|
|
4657
4657
|
}, $.prototype.SignHashRSA = function(e, t, n) {
|
|
4658
|
-
var r;
|
|
4659
|
-
return
|
|
4658
|
+
var r = this._funcMakeParams([e]);
|
|
4659
|
+
return this._funcCall("SignHashRSA", r, t, n, null);
|
|
4660
4660
|
}, $.prototype.SignRSA = function(e, t, n, r, i) {
|
|
4661
4661
|
var a;
|
|
4662
4662
|
if (typeof e != "string" || (e = this._stringToBytes(e, i)) != null) return a = this._funcMakeParams([
|
|
@@ -4670,23 +4670,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4670
4670
|
}, $.prototype.ContinueRSASignWithOffset = function(e, t, n, r, i) {
|
|
4671
4671
|
return e = e.slice(t, t + n), this.ContinueRSASign(e, r, i);
|
|
4672
4672
|
}, $.prototype.EndRSASign = function(e, t, n) {
|
|
4673
|
-
var r;
|
|
4674
|
-
return
|
|
4673
|
+
var r = this._funcMakeParams([e]);
|
|
4674
|
+
return this._funcCall("EndRSASign", r, t, n, null);
|
|
4675
4675
|
}, $.prototype.SignRSAFile = function(e, t, n, r, i) {
|
|
4676
|
-
var a
|
|
4677
|
-
return a = this._funcMakeParams([
|
|
4676
|
+
var a = this._funcMakeParams([
|
|
4678
4677
|
e,
|
|
4679
4678
|
t,
|
|
4680
4679
|
n
|
|
4681
|
-
])
|
|
4680
|
+
]);
|
|
4681
|
+
return this._funcCall("SignRSAFile", a, r, i, null);
|
|
4682
4682
|
}, $.prototype.ContinueRSASignCtx = function(e, t, n, r) {
|
|
4683
4683
|
var i;
|
|
4684
4684
|
if (e ??= new W(), typeof t != "string" || (t = this._stringToBytes(t, r)) != null) return i = this._funcMakeParams([e, new g(t)]), this._funcCall("ContinueRSASignCtx", i, n, r, null);
|
|
4685
4685
|
}, $.prototype.ContinueRSASignCtxWithOffset = function(e, t, n, r, i, a) {
|
|
4686
4686
|
return t = t.slice(n, n + r), this.ContinueRSASignCtx(t, i, a);
|
|
4687
4687
|
}, $.prototype.EndRSASignCtx = function(e, t, n, r) {
|
|
4688
|
-
var i;
|
|
4689
|
-
return
|
|
4688
|
+
var i = this._funcMakeParams([e, t]);
|
|
4689
|
+
return this._funcCall("EndRSASignCtx", i, n, r, null);
|
|
4690
4690
|
}, $.prototype.SignECDSA = function(e, t, n, r, i) {
|
|
4691
4691
|
var a;
|
|
4692
4692
|
if (typeof e != "string" || (e = this._stringToBytes(e, i)) != null) return a = this._funcMakeParams([
|
|
@@ -4701,8 +4701,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4701
4701
|
var a, o = [];
|
|
4702
4702
|
if (typeof n != "boolean" && (i = r, r = n), typeof t != "string" || (t = this._stringToBytes(t, i)) != null) return o.push(e), o.push(new g(t)), typeof n == "boolean" ? o.push(n) : o.push(null), a = this._funcMakeParams(o), this._funcCall("RawVerify", a, r, i, null);
|
|
4703
4703
|
}, $.prototype.RawSignHash = function(e, t, n) {
|
|
4704
|
-
var r;
|
|
4705
|
-
return
|
|
4704
|
+
var r = this._funcMakeParams([e]);
|
|
4705
|
+
return this._funcCall("RawSignHash", r, t, n, null);
|
|
4706
4706
|
}, $.prototype.RawVerifyHash = function(e, t, n, r, i) {
|
|
4707
4707
|
var a, o = [];
|
|
4708
4708
|
return typeof n != "boolean" && (i = r, r = n), o.push(e), o.push(t), typeof n == "boolean" ? o.push(n) : o.push(null), a = this._funcMakeParams(o), this._funcCall("RawVerifyHash", a, r, i, null);
|
|
@@ -4790,14 +4790,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4790
4790
|
i
|
|
4791
4791
|
]), this._funcCall("CtxCreateSignerEx", s, a, o, null);
|
|
4792
4792
|
}, $.prototype.ShowSenderInfo = function(e, t, n) {
|
|
4793
|
-
var r;
|
|
4794
|
-
return
|
|
4793
|
+
var r = this._funcMakeParams([e]);
|
|
4794
|
+
return this._funcCall("ShowSenderInfo", r, t, n, null);
|
|
4795
4795
|
}, $.prototype.IsEnveloped = function(e, t, n) {
|
|
4796
|
-
var r;
|
|
4797
|
-
return
|
|
4796
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
4797
|
+
return this._funcCall("IsEnveloped", r, t, n, null);
|
|
4798
4798
|
}, $.prototype.IsEnvelopedFile = function(e, t, n) {
|
|
4799
|
-
var r;
|
|
4800
|
-
return
|
|
4799
|
+
var r = this._funcMakeParams([e]);
|
|
4800
|
+
return this._funcCall("IsEnvelopedFile", r, t, n, null);
|
|
4801
4801
|
}, $.prototype.Envelop = function(e, t, n, r, i, a) {
|
|
4802
4802
|
var o;
|
|
4803
4803
|
if (typeof r != "string" || (r = this._stringToBytes(r, a)) != null) return o = this._funcMakeParams([
|
|
@@ -4948,8 +4948,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4948
4948
|
var i;
|
|
4949
4949
|
if (typeof t != "string" || (t = this._stringToBytes(t, r)) != null) return i = this._funcMakeParams([new g(e), new g(t)]), this._funcCall("RawEnvelop", i, n, r, null);
|
|
4950
4950
|
}, $.prototype.RawDevelop = function(e, t, n, r) {
|
|
4951
|
-
var i;
|
|
4952
|
-
return
|
|
4951
|
+
var i = this._funcMakeParams([e, t]);
|
|
4952
|
+
return this._funcCall("RawDevelop", i, n, r, null);
|
|
4953
4953
|
}, $.prototype.EnvelopRSA = function(e, t, n, r, i, a, o) {
|
|
4954
4954
|
return this.EnvelopRSAEx(e, [t], [n], r, i, a, o);
|
|
4955
4955
|
}, $.prototype.EnvelopFileRSA = function(e, t, n, r, i, a, o, s) {
|
|
@@ -5076,11 +5076,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5076
5076
|
var r;
|
|
5077
5077
|
e.SetData(null), r = this._funcMakeParams([e]), this._funcCall("SessionClose", r, t, n, null);
|
|
5078
5078
|
}, $.prototype.ClientSessionCreateStep1 = function(e, t, n) {
|
|
5079
|
-
var r;
|
|
5080
|
-
return
|
|
5079
|
+
var r = this._funcMakeParams([e]);
|
|
5080
|
+
return this._funcCall("ClientSessionCreateStep1", r, t, n, null);
|
|
5081
5081
|
}, $.prototype.ServerSessionCreateStep1 = function(e, t, n, r) {
|
|
5082
|
-
var i;
|
|
5083
|
-
return
|
|
5082
|
+
var i = this._funcMakeParams([e, new g(t)]);
|
|
5083
|
+
return this._funcCall("ServerSessionCreateStep1", i, n, r, null);
|
|
5084
5084
|
}, $.prototype.ClientSessionCreateStep2 = function(e, t, n, r) {
|
|
5085
5085
|
var i, a = this;
|
|
5086
5086
|
e.SetData(null), i = this._funcMakeParams([e, new g(t)]), this._funcCall("ClientSessionCreateStep2", i, n, r, function(t, n, r) {
|
|
@@ -5093,8 +5093,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5093
5093
|
var r;
|
|
5094
5094
|
return e.SetData(null), r = this._funcMakeParams([e]), this._funcCall("SessionSave", r, t, n, null);
|
|
5095
5095
|
}, $.prototype.SessionLoad = function(e, t, n) {
|
|
5096
|
-
var r;
|
|
5097
|
-
return
|
|
5096
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
5097
|
+
return this._funcCall("SessionLoad", r, t, n, null);
|
|
5098
5098
|
}, $.prototype.SessionCheckCertificates = function(e, t, n) {
|
|
5099
5099
|
var r;
|
|
5100
5100
|
return e.SetData(null), r = this._funcMakeParams([e]), this._funcCall("SessionCheckCertificates", r, t, n, null);
|
|
@@ -5138,14 +5138,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5138
5138
|
var a, o = [];
|
|
5139
5139
|
return typeof t == "string" && typeof n == "string" || (i = r, r = n), o.push(e), typeof t == "string" && typeof n == "string" ? (o.push(t), o.push(n), o.push(null)) : (o.push(null), o.push(null), o.push(new g(t))), a = this._funcMakeParams(o), this._funcCall("ClientDynamicKeySessionCreate", a, r, i, null);
|
|
5140
5140
|
}, $.prototype.ServerDynamicKeySessionCreate = function(e, t, n, r) {
|
|
5141
|
-
var i;
|
|
5142
|
-
return
|
|
5141
|
+
var i = this._funcMakeParams([e, new g(t)]);
|
|
5142
|
+
return this._funcCall("ServerDynamicKeySessionCreate", i, n, r, null);
|
|
5143
5143
|
}, $.prototype.ClientDynamicKeySessionLoad = function(e, t, n) {
|
|
5144
|
-
var r;
|
|
5145
|
-
return
|
|
5144
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
5145
|
+
return this._funcCall("ClientDynamicKeySessionLoad", r, t, n, null);
|
|
5146
5146
|
}, $.prototype.SCClientIsRunning = function(e, t) {
|
|
5147
|
-
var n;
|
|
5148
|
-
return
|
|
5147
|
+
var n = this._funcMakeParams(null);
|
|
5148
|
+
return this._funcCall("SCClientIsRunning", n, e, t, null);
|
|
5149
5149
|
}, $.prototype.SCClientStart = function(e, t) {
|
|
5150
5150
|
var n = this._funcMakeParams(null);
|
|
5151
5151
|
this._funcCall("SCClientStart", n, e, t, null);
|
|
@@ -5166,30 +5166,30 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5166
5166
|
var r = this._funcMakeParams([e]);
|
|
5167
5167
|
this._funcCall("SCClientRemoveGate", r, t, n, null);
|
|
5168
5168
|
}, $.prototype.SCClientGetStatistic = function(e, t) {
|
|
5169
|
-
var n;
|
|
5170
|
-
return
|
|
5169
|
+
var n = this._funcMakeParams(null);
|
|
5170
|
+
return this._funcCall("SCClientGetStatistic", n, e, t, null);
|
|
5171
5171
|
}, $.prototype.AppendTransportHeader = function(e, t, n, r, i, a, o) {
|
|
5172
|
-
var s
|
|
5173
|
-
return s = this._funcMakeParams([
|
|
5172
|
+
var s = this._funcMakeParams([
|
|
5174
5173
|
e,
|
|
5175
5174
|
t,
|
|
5176
5175
|
n,
|
|
5177
5176
|
new g(r),
|
|
5178
5177
|
new g(i)
|
|
5179
|
-
])
|
|
5178
|
+
]);
|
|
5179
|
+
return this._funcCall("AppendTransportHeader", s, a, o, null);
|
|
5180
5180
|
}, $.prototype.ParseTransportHeader = function(e, t, n) {
|
|
5181
|
-
var r;
|
|
5182
|
-
return
|
|
5181
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
5182
|
+
return this._funcCall("ParseTransportHeader", r, t, n, null);
|
|
5183
5183
|
}, $.prototype.AppendCryptoHeader = function(e, t, n, r, i) {
|
|
5184
|
-
var a
|
|
5185
|
-
return a = this._funcMakeParams([
|
|
5184
|
+
var a = this._funcMakeParams([
|
|
5186
5185
|
e,
|
|
5187
5186
|
t,
|
|
5188
5187
|
new g(n)
|
|
5189
|
-
])
|
|
5188
|
+
]);
|
|
5189
|
+
return this._funcCall("AppendCryptoHeader", a, r, i, null);
|
|
5190
5190
|
}, $.prototype.ParseCryptoHeader = function(e, t, n) {
|
|
5191
|
-
var r;
|
|
5192
|
-
return
|
|
5191
|
+
var r = this._funcMakeParams([new g(e)]);
|
|
5192
|
+
return this._funcCall("ParseCryptoHeader", r, t, n, null);
|
|
5193
5193
|
}, $.prototype.AppendFileTransportHeader = function(e, t, n, r, i, a, o, s) {
|
|
5194
5194
|
var c = this._funcMakeParams([
|
|
5195
5195
|
e,
|
|
@@ -5201,8 +5201,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5201
5201
|
]);
|
|
5202
5202
|
this._funcCall("AppendFileTransportHeader", c, o, s, null);
|
|
5203
5203
|
}, $.prototype.ParseFileTransportHeader = function(e, t, n, r) {
|
|
5204
|
-
var i;
|
|
5205
|
-
return
|
|
5204
|
+
var i = this._funcMakeParams([e, t]);
|
|
5205
|
+
return this._funcCall("ParseFileTransportHeader", i, n, r, null);
|
|
5206
5206
|
}, $.prototype.AppendFileCryptoHeader = function(e, t, n, r, i, a) {
|
|
5207
5207
|
var o = this._funcMakeParams([
|
|
5208
5208
|
e,
|
|
@@ -5212,18 +5212,18 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5212
5212
|
]);
|
|
5213
5213
|
this._funcCall("AppendFileCryptoHeader", o, i, a, null);
|
|
5214
5214
|
}, $.prototype.ParseFileCryptoHeader = function(e, t, n, r) {
|
|
5215
|
-
var i;
|
|
5216
|
-
return
|
|
5215
|
+
var i = this._funcMakeParams([e, t]);
|
|
5216
|
+
return this._funcCall("ParseFileCryptoHeader", i, n, r, null);
|
|
5217
5217
|
}, $.prototype.DevCtxEnum = function(e, t, n) {
|
|
5218
|
-
var r;
|
|
5219
|
-
return
|
|
5218
|
+
var r = this._funcMakeParams([e]);
|
|
5219
|
+
return this._funcCall("DevCtxEnum", r, t, n, null);
|
|
5220
5220
|
}, $.prototype.DevCtxOpen = function(e, t, n, r, i) {
|
|
5221
|
-
var a
|
|
5222
|
-
return a = this._funcMakeParams([
|
|
5221
|
+
var a = this._funcMakeParams([
|
|
5223
5222
|
e,
|
|
5224
5223
|
t,
|
|
5225
5224
|
n
|
|
5226
|
-
])
|
|
5225
|
+
]);
|
|
5226
|
+
return this._funcCall("DevCtxOpen", a, r, i, null);
|
|
5227
5227
|
}, $.prototype.CreateDeviceContext = function() {
|
|
5228
5228
|
return new q();
|
|
5229
5229
|
}, $.prototype.DevCtxEnumVirtual = function(e, t, n) {
|
|
@@ -5244,23 +5244,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5244
5244
|
}
|
|
5245
5245
|
});
|
|
5246
5246
|
}, $.prototype.DevCtxClose = function(e, t, n) {
|
|
5247
|
-
var r;
|
|
5248
|
-
return
|
|
5247
|
+
var r = this._funcMakeParams([e]);
|
|
5248
|
+
return this._funcCall("DevCtxClose", r, t, n, null);
|
|
5249
5249
|
}, $.prototype.DevCtxGetData = function(e, t, n, r) {
|
|
5250
|
-
var i;
|
|
5251
|
-
return
|
|
5250
|
+
var i = this._funcMakeParams([e, t]);
|
|
5251
|
+
return this._funcCall("DevCtxGetData", i, n, r, null);
|
|
5252
5252
|
}, $.prototype.DevCtxChangePassword = function(e, t, n, r) {
|
|
5253
|
-
var i;
|
|
5254
|
-
return
|
|
5253
|
+
var i = this._funcMakeParams([e, t]);
|
|
5254
|
+
return this._funcCall("DevCtxChangePassword", i, n, r, null);
|
|
5255
5255
|
}, $.prototype.GetHostInfo = function(e, t) {
|
|
5256
|
-
var n;
|
|
5257
|
-
return
|
|
5256
|
+
var n = this._funcMakeParams(null);
|
|
5257
|
+
return this._funcCall("GetHostInfo", n, e, t, null);
|
|
5258
5258
|
}, $.prototype.IsRemotelyControlled = function(e, t) {
|
|
5259
|
-
var n;
|
|
5260
|
-
return
|
|
5259
|
+
var n = this._funcMakeParams(null);
|
|
5260
|
+
return this._funcCall("IsRemotelyControlled", n, e, t, null);
|
|
5261
5261
|
}, $.prototype.CtxCreate = function(e, t) {
|
|
5262
|
-
var n;
|
|
5263
|
-
return
|
|
5262
|
+
var n = this._funcMakeParams(null);
|
|
5263
|
+
return this._funcCall("CtxCreate", n, e, t, null);
|
|
5264
5264
|
}, $.prototype.CtxFree = function(e, t, n) {
|
|
5265
5265
|
var r = this._funcMakeParams([e]);
|
|
5266
5266
|
this._funcCall("CtxFree", r, t, n, null);
|
|
@@ -5359,19 +5359,19 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5359
5359
|
var i;
|
|
5360
5360
|
if (typeof t != "string" || (t = this._base64Decode(t, r)) != null) return i = this._funcMakeParams([e, new g(t)]), this._funcCall("PDFGetSignTimeInfo", i, n, r, null);
|
|
5361
5361
|
}, $.prototype.PDFSign = function(e, t, n, r) {
|
|
5362
|
-
var i;
|
|
5363
|
-
return
|
|
5362
|
+
var i = this._funcMakeParams([new g(e), t]);
|
|
5363
|
+
return this._funcCall("PDFSign", i, n, r, null);
|
|
5364
5364
|
}, $.prototype.PDFVerify = function(e, t, n, r, i) {
|
|
5365
5365
|
var a, o = [];
|
|
5366
5366
|
if (typeof t != "string" || (t = this._base64Decode(t, i)) != null) return typeof n != "boolean" && (i = r, r = n), o.push(e), o.push(new g(t)), typeof n == "boolean" ? o.push(n) : o.push(null), a = this._funcMakeParams(o), this._funcCall("PDFVerify", a, r, i, null);
|
|
5367
5367
|
}, $.prototype.CtxPDFSign = function(e, t, n, r, i, a) {
|
|
5368
|
-
var o
|
|
5369
|
-
return o = this._funcMakeParams([
|
|
5368
|
+
var o = this._funcMakeParams([
|
|
5370
5369
|
e,
|
|
5371
5370
|
t,
|
|
5372
5371
|
new g(n),
|
|
5373
5372
|
r
|
|
5374
|
-
])
|
|
5373
|
+
]);
|
|
5374
|
+
return this._funcCall("CtxPDFSign", o, i, a, null);
|
|
5375
5375
|
}, $.prototype.CtxPDFGetSignerInfo = function(e, t, n, r, i) {
|
|
5376
5376
|
var a;
|
|
5377
5377
|
if (typeof n != "string" || (n = this._base64Decode(n, i)) != null) return a = this._funcMakeParams([
|
|
@@ -5433,8 +5433,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5433
5433
|
new g(n)
|
|
5434
5434
|
]), this._funcCall("CtxXAdESGetSignerInfo", a, r, i, null);
|
|
5435
5435
|
}, $.prototype.SServerClientGeneratePrivateKeyAsync = function(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
5436
|
-
var p
|
|
5437
|
-
return p = this._funcMakeParams([
|
|
5436
|
+
var p = this._funcMakeParams([
|
|
5438
5437
|
e,
|
|
5439
5438
|
t,
|
|
5440
5439
|
n,
|
|
@@ -5446,7 +5445,8 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5446
5445
|
c,
|
|
5447
5446
|
l,
|
|
5448
5447
|
u
|
|
5449
|
-
])
|
|
5448
|
+
]);
|
|
5449
|
+
return this._funcCall("SServerClientGeneratePrivateKeyAsync", p, d, f, null);
|
|
5450
5450
|
}, $.prototype.SServerClientCheckGeneratePrivateKeyStatus = function(e, t, n, r, i, a) {
|
|
5451
5451
|
var o, s = this;
|
|
5452
5452
|
return o = this._funcMakeParams([
|
|
@@ -5478,13 +5478,13 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
5478
5478
|
o
|
|
5479
5479
|
]), this._funcCall("SServerClientSignHashAsync", l, s, c, null);
|
|
5480
5480
|
}, $.prototype.SServerClientCheckSignHashStatus = function(e, t, n, r, i, a) {
|
|
5481
|
-
var o
|
|
5482
|
-
return o = this._funcMakeParams([
|
|
5481
|
+
var o = this._funcMakeParams([
|
|
5483
5482
|
e,
|
|
5484
5483
|
t,
|
|
5485
5484
|
n,
|
|
5486
5485
|
r
|
|
5487
|
-
])
|
|
5486
|
+
]);
|
|
5487
|
+
return this._funcCall("SServerClientCheckSignHashStatus", o, i, a, null);
|
|
5488
5488
|
}, $.prototype.SServerClientSignHashesAsync = function(e, t, n, r, i, a, o, s, c, l) {
|
|
5489
5489
|
var u;
|
|
5490
5490
|
return a.className == "EndUserArrayList" && (a = a.m_array), o.className == "EndUserArrayList" && (o = o.m_array), u = this._funcMakeParams([
|
|
@@ -8855,8 +8855,6 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
8855
8855
|
case "ru":
|
|
8856
8856
|
t = this.EU_RU_LANG;
|
|
8857
8857
|
break;
|
|
8858
|
-
case "uk":
|
|
8859
|
-
case "ua":
|
|
8860
8858
|
default: t = this.EU_UA_LANG;
|
|
8861
8859
|
}
|
|
8862
8860
|
return this.m_language = t, new e(function(e, r) {
|
|
@@ -9957,10 +9955,10 @@ var j = class {
|
|
|
9957
9955
|
} catch (e) {
|
|
9958
9956
|
console.error("error parsing KSPs from GlSign"), console.error(e);
|
|
9959
9957
|
}
|
|
9960
|
-
|
|
9958
|
+
this.KSPs && this.KSPs.length !== 0 || (this.KSPs = te(this.AllowTestKeys)), this.KSPs.forEach((e) => {
|
|
9961
9959
|
if (e.ksp === G.DIIA || e.ksp === G.IIT || e.ksp === G.PB || e.ksp === G.VTOKEN) {
|
|
9962
9960
|
if (e.address.includes("cabinet.e-life.com.ua") || e.address.includes("sserver.amokey.com") || e.address.includes("smart-sign.dpsu.gov.ua") || e.address.includes("sign-ca.mvs.gov.ua") || e.address.includes("id.edin.ua") || e.address.includes("business.ukrsibbank.com")) return;
|
|
9963
|
-
|
|
9961
|
+
Array.isArray(e.signAlgos) && e.signAlgos.length != 0 || (e.signAlgos = [f.EndUserConstants.EndUserSignAlgo.DSTU4145WithDSTU7564, f.EndUserConstants.EndUserSignAlgo.DSTU4145WithGOST34311]);
|
|
9964
9962
|
}
|
|
9965
9963
|
});
|
|
9966
9964
|
}
|
|
@@ -10218,41 +10216,42 @@ function te(e) {
|
|
|
10218
10216
|
let t = new f.KSPSettings();
|
|
10219
10217
|
t.id = "DEPOSITSIGN", t.name = "DepositSign", t.ksp = f.EndUserConstants.EU_KSP_PB, t.address = "https://depositsign.com/api/v1/it-enterprise/sign-server", t.clientIdPrefix = "", t.directAccess = !0, t.needQRCode = !1;
|
|
10220
10218
|
let n = new f.KSPSettings();
|
|
10221
|
-
n.id = "DIIA-SIGN", n.name = "Дія.Підпис", n.ksp = f.EndUserConstants.EU_KSP_DIIA, n.directAccess = !1, n.mobileAppName = "Дія", n.address = "https://diia-sign.it.ua/KSPSign", n.systemId = "diia-sign-it-ent", n.needQRCode = !0
|
|
10219
|
+
n.id = "DIIA-SIGN", n.name = "Дія.Підпис", n.ksp = f.EndUserConstants.EU_KSP_DIIA, n.directAccess = !1, n.mobileAppName = "Дія", n.address = "https://diia-sign.it.ua/KSPSign", n.systemId = "diia-sign-it-ent", n.needQRCode = !0;
|
|
10222
10220
|
let r = new f.KSPSettings();
|
|
10223
|
-
r.id = "
|
|
10221
|
+
r.id = "DIIA-SIGN-TEST", r.name = "Дія.Підпис (Тест)", r.ksp = f.EndUserConstants.EU_KSP_DIIA, r.directAccess = !1, r.mobileAppName = "Дія", r.address = "https://test-diia-sign.it.ua/KSPSign", r.systemId = "test-diia-sign-it-ent", r.authSystemId = "test-diia-sign-it-ent-auth", r.needQRCode = !0;
|
|
10224
10222
|
let i = new f.KSPSettings();
|
|
10225
|
-
i.id = "
|
|
10223
|
+
i.id = "PB-SMARTID", i.name = "Приватбанк - хмарний підпис \"SmartID\"", i.ksp = f.EndUserConstants.EU_KSP_PB, i.directAccess = !0, i.mobileAppName = "Приват24", i.address = "https://acsk.privatbank.ua/cloud/api/back/", i.clientIdPrefix = "IEIS_", i.confirmationURL = "https://www.privat24.ua/rd/kep", i.needQRCode = !0;
|
|
10226
10224
|
let a = new f.KSPSettings();
|
|
10227
|
-
a.id = "
|
|
10225
|
+
a.id = "VCHASNO", a.name = "Вчасно - хмарний підпис", a.ksp = f.EndUserConstants.EU_KSP_PB, a.address = "https://cs.vchasno.ua/ss/", a.clientIdPrefix = "", a.directAccess = !1, a.needQRCode = !1;
|
|
10228
10226
|
let o = new f.KSPSettings();
|
|
10229
|
-
o.id = "
|
|
10227
|
+
o.id = "VCHASNOQR", o.name = "Вчасно - хмарний підпис (QR)", o.ksp = f.EndUserConstants.EU_KSP_PB, o.address = "https://cs.vchasno.ua/ss/", o.clientIdPrefix = "vchasno_", o.confirmationURL = "https://cs.vchasno.ua/rd/", o.mobileAppName = "Вчасно.КЕП", o.directAccess = !1, o.needQRCode = !0;
|
|
10230
10228
|
let s = new f.KSPSettings();
|
|
10231
|
-
s.id = "
|
|
10229
|
+
s.id = "CLOUDKEY", s.name = "ТОВ «ЦСК «Україна» - хмарний підпис CloudKey", s.ksp = f.EndUserConstants.EU_KSP_PB, s.directAccess = !0, s.mobileAppName = "CloudKey", s.address = "https://sid.uakey.com.ua/smartid/iit/", s.clientIdPrefix = "DIIA_2", s.confirmationURL = "https://sid.uakey.com.ua/kep?hash=rd/kep", s.needQRCode = !0;
|
|
10232
10230
|
let c = new f.KSPSettings();
|
|
10233
|
-
c.id = "
|
|
10231
|
+
c.id = "ESIGN", c.name = "ESign - хмарний підпис", c.ksp = f.EndUserConstants.EU_KSP_PB, c.address = "https://cabinet.e-life.com.ua/api/EDG/Sign", c.clientIdPrefix = "", c.directAccess = !0, c.needQRCode = !1;
|
|
10234
10232
|
let l = new f.KSPSettings();
|
|
10235
|
-
l.id = "
|
|
10233
|
+
l.id = "SMARTSIGNTAX", l.name = "ДПС - хмарний підпис", l.ksp = f.EndUserConstants.EU_KSP_PB, l.address = "https://smart-sign.tax.gov.ua/", l.port = "443", l.directAccess = !0, l.clientIdType = K.Name, l.needQRCode = !1;
|
|
10236
10234
|
let u = new f.KSPSettings();
|
|
10237
|
-
u.id = "
|
|
10235
|
+
u.id = "PUMB", u.name = "ПУМБ - хмарний підпис", u.ksp = f.EndUserConstants.EU_KSP_PB, u.address = "https://apiext.pumb.ua/hogsmeade/striga/v1", u.directAccess = !1, u.clientIdPrefix = "SMARTTENDER_", u.confirmationURL = "https://www.pumb.ua/qes", u.mobileAppName = "", u.needQRCode = !0;
|
|
10238
10236
|
let d = new f.KSPSettings();
|
|
10239
|
-
d.id = "
|
|
10237
|
+
d.id = "UGB", d.name = "Укргазбанк - хмарний підпис «EcoSign»", d.ksp = G.VTOKEN, d.address = "https://vtms-api-qca.ukrgasbank.com/vtco/api/v1", d.systemId = "cihsmVtcoServiceClientSmartTender", d.directAccess = !0, d.clientIdType = K.NamePassword, d.needQRCode = !1;
|
|
10240
10238
|
let p = new f.KSPSettings();
|
|
10241
|
-
p.id = "
|
|
10239
|
+
p.id = "ALLIANCE", p.name = "Банк Альянс - хмарний підпис", p.ksp = G.VTOKEN, p.address = "https://cihsm-api.bankalliance.ua/vtco/api/v1", p.systemId = "cihsmVtcoServiceClientSmartTender", p.directAccess = !0, p.clientIdType = K.NamePassword, p.needQRCode = !1;
|
|
10242
10240
|
let m = new f.KSPSettings();
|
|
10243
|
-
m.id = "
|
|
10241
|
+
m.id = "VTOKEN", m.name = "Хмарний сервіс Шифр-vToken (тестовий)", m.ksp = G.VTOKEN, m.address = "https://cihsm-dev-api.cipher.com.ua/vtco/api/v1", m.systemId = "cipherVTokenIntegrationClient", m.directAccess = !0, m.clientIdType = K.NamePassword, m.needQRCode = !1;
|
|
10244
10242
|
let h = new f.KSPSettings();
|
|
10245
|
-
h.id = "
|
|
10243
|
+
h.id = "AMOKEY", h.name = "АМО ФІНТЕХ – хмарний підпис AMOKEY", h.ksp = G.PB, h.address = "https://sserver.amokey.com", h.port = "443", h.clientIdPrefix = "", h.directAccess = !0, h.clientIdType = K.Name, h.needQRCode = !1;
|
|
10246
10244
|
let g = new f.KSPSettings();
|
|
10247
|
-
g.id = "
|
|
10245
|
+
g.id = "TASCOMBANK", g.name = "Сервер підпису КНЕДП АТ \"ТАСКОМБАНК\"", g.ksp = G.PB, g.address = "https://smartsign.tascombank.ua", g.port = "443", g.clientIdPrefix = "", g.directAccess = !0, g.clientIdType = K.Name, g.needQRCode = !1;
|
|
10248
10246
|
let _ = new f.KSPSettings();
|
|
10249
|
-
_.id = "
|
|
10247
|
+
_.id = "EDINQR", _.name = "EDIN ID - хмарний підпис (QR)", _.ksp = G.PB, _.address = "https://id.edin.ua/api/ess/v1/", _.confirmationURL = "https://id.edin.ua/mobile/sign", _.port = "", _.clientIdPrefix = "EDIN_", _.directAccess = !0, _.mobileAppName = "edinid", _.needQRCode = !0;
|
|
10250
10248
|
let v = new f.KSPSettings();
|
|
10251
|
-
v.id = "
|
|
10252
|
-
let y =
|
|
10249
|
+
v.id = "EDIN", v.name = "EDIN ID - хмарний підпис", v.ksp = G.PB, v.address = "https://id.edin.ua/api/ess/v1/", v.port = "", v.clientIdPrefix = "", v.directAccess = !0, v.clientIdType = K.Name, v.needQRCode = !1;
|
|
10250
|
+
let y = new f.KSPSettings();
|
|
10251
|
+
y.id = "UKRSIBBANK", y.name = "УКРСИББАНК - хмарний підпис", y.ksp = G.PB, y.address = "https://business.ukrsibbank.com/morpheus/smart-sign/", y.confirmationURL = "https://business.ukrsibbank.com/smartsign", y.port = "", y.clientIdPrefix = "USB_", y.directAccess = !0, y.mobileAppName = "UKRSIB business", y.needQRCode = !0;
|
|
10252
|
+
let b = [
|
|
10253
10253
|
t,
|
|
10254
10254
|
n,
|
|
10255
|
-
r,
|
|
10256
10255
|
i,
|
|
10257
10256
|
a,
|
|
10258
10257
|
o,
|
|
@@ -10261,13 +10260,14 @@ function te(e) {
|
|
|
10261
10260
|
l,
|
|
10262
10261
|
u,
|
|
10263
10262
|
d,
|
|
10264
|
-
|
|
10263
|
+
p,
|
|
10265
10264
|
h,
|
|
10266
10265
|
g,
|
|
10267
10266
|
_,
|
|
10268
|
-
v
|
|
10267
|
+
v,
|
|
10268
|
+
y
|
|
10269
10269
|
];
|
|
10270
|
-
return e &&
|
|
10270
|
+
return e && (b.push(r), b.push(m)), b;
|
|
10271
10271
|
}
|
|
10272
10272
|
var ne = class {
|
|
10273
10273
|
constructor(e, t, n) {
|
|
@@ -10282,8 +10282,8 @@ var ne = class {
|
|
|
10282
10282
|
this.userName = e, this.password = t;
|
|
10283
10283
|
}
|
|
10284
10284
|
}, ae = class {
|
|
10285
|
-
constructor(e, t, n) {
|
|
10286
|
-
this.pin = e, this.token = t, this.twoFactorCode = n;
|
|
10285
|
+
constructor(e, t, n, r, i, a, o) {
|
|
10286
|
+
this.pin = e, this.token = t, this.twoFactorCode = n, this.name = r, this.val = i, this.operationId = a, this.signature = o;
|
|
10287
10287
|
}
|
|
10288
10288
|
}, X = class {
|
|
10289
10289
|
constructor(e, t, n, r, i, a, o) {
|
|
@@ -10477,7 +10477,7 @@ var ne = class {
|
|
|
10477
10477
|
return this.initialize();
|
|
10478
10478
|
}
|
|
10479
10479
|
initialize() {
|
|
10480
|
-
return this._isInitializing
|
|
10480
|
+
return this._isInitializing || (this._isInitializing = !0, this._initializationPromise = new Promise(async (e, t) => {
|
|
10481
10481
|
try {
|
|
10482
10482
|
e(await this._initialize());
|
|
10483
10483
|
} catch (e) {
|
|
@@ -10485,7 +10485,7 @@ var ne = class {
|
|
|
10485
10485
|
} finally {
|
|
10486
10486
|
this._isInitializing = !1;
|
|
10487
10487
|
}
|
|
10488
|
-
}), this._initializationPromise
|
|
10488
|
+
})), this._initializationPromise;
|
|
10489
10489
|
}
|
|
10490
10490
|
async _initialize() {
|
|
10491
10491
|
this._glSign ||= await Promise.resolve(this._settingsProvider.getGlSign()), this._settings ||= await Promise.resolve(this._settingsProvider.getSettings(this._glSign.AllowTestKeys)), this._euSignFile ||= new f.EndUser(this._settings.libraryUrl, f.EndUserConstants.EndUserLibraryType.JS, this._glSign.WebClientFileSize), this._euSignKeyMedia ||= new f.EndUser(this._settings.libraryUrl, f.EndUserConstants.EndUserLibraryType.SW, this._glSign.WebClientFileSize), this._euSign || (this._euSign = this._glSign.PreferHarware ? this._euSignKeyMedia : this._euSignFile, this.keyType = this._glSign.PreferHarware ? W.Token : this._preferredKeyType), this.UmCAService ||= new oe(this.glSign.UmcaservicePort);
|
|
@@ -11120,11 +11120,11 @@ var ne = class {
|
|
|
11120
11120
|
async getPrivateKeyInfoFromStorage(e, t) {
|
|
11121
11121
|
let n = (e ? localStorage : sessionStorage)[this._userId + se], r, i = [];
|
|
11122
11122
|
if (!n) return i;
|
|
11123
|
-
let a = await this._euSignFile.UnprotectDataByPassword(n, "", !0);
|
|
11124
11123
|
try {
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11124
|
+
let e = await this._euSignFile.UnprotectDataByPassword(n, "", !0);
|
|
11125
|
+
r = JSON.parse(e), t >= 0 && (r = r.filter((e) => e.keyType == t));
|
|
11126
|
+
} catch (e) {
|
|
11127
|
+
console.error("Error while reading stored keys", e), r = [];
|
|
11128
11128
|
}
|
|
11129
11129
|
return r.forEach((e) => {
|
|
11130
11130
|
let t = e.password;
|
|
@@ -11210,7 +11210,6 @@ var ne = class {
|
|
|
11210
11210
|
}
|
|
11211
11211
|
}
|
|
11212
11212
|
};
|
|
11213
|
-
//#endregion
|
|
11214
11213
|
export { ce as DigitalSignature, f as EUSignCP, P as GlSign, F as Models, d as Utils };
|
|
11215
11214
|
|
|
11216
11215
|
//# sourceMappingURL=it-digital-signature.mjs.map
|