UNPKG

@peculiar/asn1-x509

Version:

ASN.1 schema for X.509 certificates, certificate revocation lists, and related profile structures defined in RFC 5280.

20 lines (19 loc) 621 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, } from "@peculiar/asn1-schema"; import { id_ce } from "../object_identifiers.js"; export const id_ce_invalidityDate = `${id_ce}.24`; let InvalidityDate = class InvalidityDate { value = new Date(); constructor(value) { if (value) { this.value = value; } } }; __decorate([ AsnProp({ type: AsnPropTypes.GeneralizedTime }) ], InvalidityDate.prototype, "value", void 0); InvalidityDate = __decorate([ AsnType({ type: AsnTypeTypes.Choice }) ], InvalidityDate); export { InvalidityDate };