@peculiar/asn1-ess
Version:
ASN.1 schema based on Enhanced Security Services (ESS) for S/MIME (RFC 2634)
20 lines (19 loc) • 720 B
JavaScript
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, OctetString } from "@peculiar/asn1-schema";
export class ContentReference {
constructor(params = {}) {
this.contentType = "";
this.signedContentIdentifier = new OctetString();
this.originatorSignatureValue = new OctetString();
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
], ContentReference.prototype, "contentType", void 0);
__decorate([
AsnProp({ type: OctetString })
], ContentReference.prototype, "signedContentIdentifier", void 0);
__decorate([
AsnProp({ type: OctetString })
], ContentReference.prototype, "originatorSignatureValue", void 0);