UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

41 lines 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GlobalKeyStore = void 0; const index_1 = require("./../index"); class GlobalKeyStore { constructor(data) { this.certificates = (data.certificates || []).map(index_1.CertificateEntry.fromJson); let keyStoreContentDefault = ""; this.keyStoreContent = typeof (data === null || data === void 0 ? void 0 : data.keyStoreContent) !== "undefined" ? data === null || data === void 0 ? void 0 : data.keyStoreContent : keyStoreContentDefault; } static getCertificatesDefault() { return []; } static getCertificatesDescription() { return "Defines the certificates contained in the keystore."; } static getKeyStoreContentDefault() { return ""; } static getKeyStoreContentDescription() { return "The raw BASE64 encoded contents of a keystore file."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new GlobalKeyStore(data); } toJson() { var _a; return { 'certificates': (_a = this.certificates) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), 'keyStoreContent': this.keyStoreContent, }; } clone() { return GlobalKeyStore.fromJson(this.toJson()); } } exports.GlobalKeyStore = GlobalKeyStore; //# sourceMappingURL=GlobalKeyStore.js.map