UNPKG

@peculiar/asn1-x509

Version:

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

25 lines (24 loc) 820 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema"; import { AlgorithmIdentifier } from "./algorithm_identifier.js"; import { TBSCertList } from "./tbs_cert_list.js"; export class CertificateList { tbsCertList = new TBSCertList(); tbsCertListRaw; signatureAlgorithm = new AlgorithmIdentifier(); signature = new ArrayBuffer(0); constructor(params = {}) { Object.assign(this, params); } } __decorate([ AsnProp({ type: TBSCertList, raw: true, }) ], CertificateList.prototype, "tbsCertList", void 0); __decorate([ AsnProp({ type: AlgorithmIdentifier }) ], CertificateList.prototype, "signatureAlgorithm", void 0); __decorate([ AsnProp({ type: AsnPropTypes.BitString }) ], CertificateList.prototype, "signature", void 0);