cert_bag.js 679 B

12345678910111213141516171819
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
  3. import { id_pkcs_9 } from "./types";
  4. export class CertBag {
  5. constructor(params = {}) {
  6. this.certId = "";
  7. this.certValue = new ArrayBuffer(0);
  8. Object.assign(this, params);
  9. }
  10. }
  11. __decorate([
  12. AsnProp({ type: AsnPropTypes.ObjectIdentifier })
  13. ], CertBag.prototype, "certId", void 0);
  14. __decorate([
  15. AsnProp({ type: AsnPropTypes.Any, context: 0 })
  16. ], CertBag.prototype, "certValue", void 0);
  17. export const id_certTypes = `${id_pkcs_9}.22`;
  18. export const id_x509Certificate = `${id_certTypes}.1`;
  19. export const id_sdsiCertificate = `${id_certTypes}.2`;