@it-enterprise/digital-signature 1.3.0 → 1.3.1
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/euscp/EndUserClientRegistrationToken.d.ts +7 -0
- package/euscp/euscp.d.ts +11 -3
- package/euscp/euscp.js +2 -2
- package/package.json +1 -1
- package/readme.md +72 -25
- package/src/DigitalSignature.js +11 -3
- package/src/euscp.worker.js +57 -27
- package/worker/{euscp.worker.ex-1.3.74.js → euscp.worker.ex-1.3.75.js} +57 -27
package/euscp/euscp.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { EndUserParams } from "./EndUserParams";
|
|
|
18
18
|
import { EndUserInfo } from "./EndUserInfo";
|
|
19
19
|
import { EndUserRequestInfo } from "./EndUserRequestInfo";
|
|
20
20
|
import { EndUserEventListener } from "./EndUserEvents";
|
|
21
|
-
import { EndUserClientRegistrationToken } from "./EndUserClientRegistrationToken";
|
|
21
|
+
import { EndUserClientRegistrationParameters, EndUserClientRegistrationToken } from "./EndUserClientRegistrationToken";
|
|
22
22
|
import * as EndUserEvents from "./EndUserEvents";
|
|
23
23
|
declare type NamedData = {
|
|
24
24
|
name: string;
|
|
@@ -227,6 +227,13 @@ declare class EndUser {
|
|
|
227
227
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
228
228
|
*/
|
|
229
229
|
MakeDeviceCertificate(deviceName: string, uaRequest: Uint8Array, uaKEPRequest: Uint8Array, internationalRequest: Uint8Array, ecdsaRequest: Uint8Array): Promise<Array<EndUserCertificate>>;
|
|
230
|
+
/**
|
|
231
|
+
* Set user password for key media using security officer password
|
|
232
|
+
* @param soPassword The security officer password
|
|
233
|
+
* @param keyMedia The key media
|
|
234
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
235
|
+
*/
|
|
236
|
+
SetKeyMediaUserPassword(soPassword: string, keyMedia: EndUserKeyMedia): Promise<void>;
|
|
230
237
|
/**
|
|
231
238
|
* Change private key password for key media
|
|
232
239
|
* @param keyMedia The key media.
|
|
@@ -296,9 +303,10 @@ declare class EndUser {
|
|
|
296
303
|
/**
|
|
297
304
|
* Get client registration token to register on the KSP
|
|
298
305
|
* @param ksp The key service provider identifier or name
|
|
306
|
+
* @param parameters The registration operation parameters
|
|
299
307
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
300
308
|
*/
|
|
301
|
-
GetClientRegistrationTokenKSP(ksp: EndUserKSP | number | string): Promise<EndUserClientRegistrationToken>;
|
|
309
|
+
GetClientRegistrationTokenKSP(ksp: EndUserKSP | number | string, parameters?: EndUserClientRegistrationParameters): Promise<EndUserClientRegistrationToken | string>;
|
|
302
310
|
/**
|
|
303
311
|
* Hash data using specified hash algorithm
|
|
304
312
|
* @param hashAlgo The hash algorithm.
|
|
@@ -684,4 +692,4 @@ declare class EndUser {
|
|
|
684
692
|
*/
|
|
685
693
|
GetSignContainerInfo(signedData: Uint8Array | string): Promise<EndUserSignContainerInfo>;
|
|
686
694
|
}
|
|
687
|
-
export { NamedData, CASettings, KSPSettings, EndUserError, EndUserConstants, EndUserEvents, EndUserLibraryInfoJS, EndUserLibraryInfoSW, EndUserSettings, EndUserProxySettings, EndUserOwnerInfo, EndUserCertificateInfoEx, EndUserCertificate, EndUserKeyMedia, EndUserJKSPrivateKeyInfo, EndUserContext, EndUserPrivateKeyContext, EndUserTimeInfo, EndUserSignContainerInfo, EndUserSignInfo, EndUserSenderInfo, EndUserParams, EndUserInfo, EndUserRequestInfo, EndUserClientRegistrationToken, EndUserTaxReport, EndUserTaxReceipt, EndUser };
|
|
695
|
+
export { NamedData, CASettings, KSPSettings, EndUserError, EndUserConstants, EndUserEvents, EndUserLibraryInfoJS, EndUserLibraryInfoSW, EndUserSettings, EndUserProxySettings, EndUserOwnerInfo, EndUserCertificateInfoEx, EndUserCertificate, EndUserKeyMedia, EndUserJKSPrivateKeyInfo, EndUserContext, EndUserPrivateKeyContext, EndUserTimeInfo, EndUserSignContainerInfo, EndUserSignInfo, EndUserSenderInfo, EndUserParams, EndUserInfo, EndUserRequestInfo, EndUserClientRegistrationParameters, EndUserClientRegistrationToken, EndUserTaxReport, EndUserTaxReceipt, EndUser };
|