UNPKG

@peculiar/asn1-ess

Version:

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

25 lines (24 loc) 859 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes, OctetString } from "@peculiar/asn1-schema"; import { ESSVersion } from "./types"; export class Receipt { constructor(params = {}) { this.version = ESSVersion.v1; this.contentType = ""; this.signedContentIdentifier = new OctetString(); this.originatorSignatureValue = new OctetString(); Object.assign(this, params); } } __decorate([ AsnProp({ type: AsnPropTypes.Integer }) ], Receipt.prototype, "version", void 0); __decorate([ AsnProp({ type: AsnPropTypes.ObjectIdentifier }) ], Receipt.prototype, "contentType", void 0); __decorate([ AsnProp({ type: OctetString }) ], Receipt.prototype, "signedContentIdentifier", void 0); __decorate([ AsnProp({ type: OctetString }) ], Receipt.prototype, "originatorSignatureValue", void 0);