UNPKG

@peculiar/asn1-ess

Version:

ASN.1 schema based on Enhanced Security Services (ESS) for S/MIME (RFC 2634)

24 lines (23 loc) 999 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContentReference = void 0; const tslib_1 = require("tslib"); const asn1_schema_1 = require("@peculiar/asn1-schema"); class ContentReference { constructor(params = {}) { this.contentType = ""; this.signedContentIdentifier = new asn1_schema_1.OctetString(); this.originatorSignatureValue = new asn1_schema_1.OctetString(); Object.assign(this, params); } } exports.ContentReference = ContentReference; tslib_1.__decorate([ (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier }) ], ContentReference.prototype, "contentType", void 0); tslib_1.__decorate([ (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString }) ], ContentReference.prototype, "signedContentIdentifier", void 0); tslib_1.__decorate([ (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString }) ], ContentReference.prototype, "originatorSignatureValue", void 0);