UNPKG

@peculiar/asn1-x509

Version:

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

22 lines (21 loc) 708 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema"; import { id_ce } from "../object_identifiers.js"; export const id_ce_privateKeyUsagePeriod = `${id_ce}.16`; export class PrivateKeyUsagePeriod { notBefore; notAfter; constructor(params = {}) { Object.assign(this, params); } } __decorate([ AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 0, implicit: true, optional: true, }) ], PrivateKeyUsagePeriod.prototype, "notBefore", void 0); __decorate([ AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 1, implicit: true, optional: true, }) ], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);