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) 834 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema"; import { AlgorithmIdentifier } from "./algorithm_identifier.js"; import { TBSCertificate } from "./tbs_certificate.js"; export class Certificate { tbsCertificate = new TBSCertificate(); tbsCertificateRaw; signatureAlgorithm = new AlgorithmIdentifier(); signatureValue = new ArrayBuffer(0); constructor(params = {}) { Object.assign(this, params); } } __decorate([ AsnProp({ type: TBSCertificate, raw: true, }) ], Certificate.prototype, "tbsCertificate", void 0); __decorate([ AsnProp({ type: AlgorithmIdentifier }) ], Certificate.prototype, "signatureAlgorithm", void 0); __decorate([ AsnProp({ type: AsnPropTypes.BitString }) ], Certificate.prototype, "signatureValue", void 0);