xadesjs
Version:
XML Advanced Electronic Signatures (XAdES) implementation in TypeScript/JavaScript built on XMLDSIGjs
45 lines (44 loc) • 1.61 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { XmlAttribute, XmlChildElement, XmlElement } from 'xml-core';
import { CanonicalizationMethod } from 'xmldsigjs';
import { EncapsulatedTimeStampCollection, ReferenceInfos, XMLTimeStampCollection, } from './generic_time_stamp.js';
import { XmlXades } from './xml.js';
import { XadesObject } from './xml_base.js';
let OtherTimeStamp = class OtherTimeStamp extends XadesObject {
};
__decorate([
XmlAttribute({
localName: XmlXades.AttributeNames.Id,
defaultValue: '',
}),
__metadata("design:type", String)
], OtherTimeStamp.prototype, "Id", void 0);
__decorate([
XmlChildElement({
parser: ReferenceInfos,
noRoot: true,
}),
__metadata("design:type", ReferenceInfos)
], OtherTimeStamp.prototype, "ReferenceInfo", void 0);
__decorate([
XmlChildElement({ parser: CanonicalizationMethod }),
__metadata("design:type", CanonicalizationMethod)
], OtherTimeStamp.prototype, "CanonicalizationMethod", void 0);
__decorate([
XmlChildElement({
parser: EncapsulatedTimeStampCollection,
noRoot: true,
}),
__metadata("design:type", EncapsulatedTimeStampCollection)
], OtherTimeStamp.prototype, "EncapsulatedTimeStamp", void 0);
__decorate([
XmlChildElement({
parser: XMLTimeStampCollection,
noRoot: true,
}),
__metadata("design:type", XMLTimeStampCollection)
], OtherTimeStamp.prototype, "XMLTimeStamp", void 0);
OtherTimeStamp = __decorate([
XmlElement({ localName: XmlXades.ElementNames.OtherTimeStamp })
], OtherTimeStamp);
export { OtherTimeStamp };