UNPKG

r2-shared-js

Version:

Readium 2 'shared' for NodeJS (TypeScript)

41 lines 2.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EncryptedData = void 0; var tslib_1 = require("tslib"); var xml_js_mapper_1 = require("r2-utils-js/dist/es5/src/_utils/xml-js-mapper"); var encryption_cypherdata_1 = require("./encryption-cypherdata"); var encryption_keyinfo_1 = require("./encryption-keyinfo"); var encryption_method_1 = require("./encryption-method"); var encryption_property_1 = require("./encryption-property"); var EncryptedData = (function () { function EncryptedData() { } tslib_1.__decorate([ (0, xml_js_mapper_1.XmlXPathSelector)("enc:EncryptionMethod"), tslib_1.__metadata("design:type", encryption_method_1.EncryptionMethod) ], EncryptedData.prototype, "EncryptionMethod", void 0); tslib_1.__decorate([ (0, xml_js_mapper_1.XmlXPathSelector)("ds:KeyInfo"), tslib_1.__metadata("design:type", encryption_keyinfo_1.KeyInfo) ], EncryptedData.prototype, "KeyInfo", void 0); tslib_1.__decorate([ (0, xml_js_mapper_1.XmlXPathSelector)("enc:CipherData"), tslib_1.__metadata("design:type", encryption_cypherdata_1.CipherData) ], EncryptedData.prototype, "CipherData", void 0); tslib_1.__decorate([ (0, xml_js_mapper_1.XmlXPathSelector)("enc:EncryptionProperties/enc:EncryptionProperty"), (0, xml_js_mapper_1.XmlItemType)(encryption_property_1.EncryptionProperty), tslib_1.__metadata("design:type", Array) ], EncryptedData.prototype, "EncryptionProperties", void 0); EncryptedData = tslib_1.__decorate([ (0, xml_js_mapper_1.XmlObject)({ ds: "http://www.w3.org/2000/09/xmldsig#", enc: "http://www.w3.org/2001/04/xmlenc#", encryption: "urn:oasis:names:tc:opendocument:xmlns:container", ns: "http://www.idpf.org/2016/encryption#compression", }) ], EncryptedData); return EncryptedData; }()); exports.EncryptedData = EncryptedData; //# sourceMappingURL=encryption-data.js.map