cert_bag.js 685 B

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