UNPKG

@peculiar/asn1-x509

Version:

ASN.1 schema of `Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile` (RFC5280)

22 lines (21 loc) 808 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema"; import { AlgorithmIdentifier } from "./algorithm_identifier"; import { TBSCertList } from "./tbs_cert_list"; export class CertificateList { constructor(params = {}) { this.tbsCertList = new TBSCertList(); this.signatureAlgorithm = new AlgorithmIdentifier(); this.signature = new ArrayBuffer(0); 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);