cert_bag.js 677 B

123456789101112131415161718192021
  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, context: 0,
  17. })
  18. ], CertBag.prototype, "certValue", void 0);
  19. export const id_certTypes = `${id_pkcs_9}.22`;
  20. export const id_x509Certificate = `${id_certTypes}.1`;
  21. export const id_sdsiCertificate = `${id_certTypes}.2`;