certificate_choices.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. var CertificateSet_1;
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.CertificateSet = exports.CertificateChoices = exports.OtherCertificateFormat = void 0;
  5. const tslib_1 = require("tslib");
  6. const asn1_schema_1 = require("@peculiar/asn1-schema");
  7. const asn1_x509_1 = require("@peculiar/asn1-x509");
  8. const asn1_x509_attr_1 = require("@peculiar/asn1-x509-attr");
  9. class OtherCertificateFormat {
  10. constructor(params = {}) {
  11. this.otherCertFormat = "";
  12. this.otherCert = new ArrayBuffer(0);
  13. Object.assign(this, params);
  14. }
  15. }
  16. exports.OtherCertificateFormat = OtherCertificateFormat;
  17. tslib_1.__decorate([
  18. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  19. ], OtherCertificateFormat.prototype, "otherCertFormat", void 0);
  20. tslib_1.__decorate([
  21. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any })
  22. ], OtherCertificateFormat.prototype, "otherCert", void 0);
  23. let CertificateChoices = class CertificateChoices {
  24. constructor(params = {}) {
  25. Object.assign(this, params);
  26. }
  27. };
  28. exports.CertificateChoices = CertificateChoices;
  29. tslib_1.__decorate([
  30. (0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.Certificate })
  31. ], CertificateChoices.prototype, "certificate", void 0);
  32. tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnProp)({ type: asn1_x509_attr_1.AttributeCertificate, context: 2, implicit: true })
  34. ], CertificateChoices.prototype, "v2AttrCert", void 0);
  35. tslib_1.__decorate([
  36. (0, asn1_schema_1.AsnProp)({ type: OtherCertificateFormat, context: 3, implicit: true })
  37. ], CertificateChoices.prototype, "other", void 0);
  38. exports.CertificateChoices = CertificateChoices = tslib_1.__decorate([
  39. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
  40. ], CertificateChoices);
  41. let CertificateSet = CertificateSet_1 = class CertificateSet extends asn1_schema_1.AsnArray {
  42. constructor(items) {
  43. super(items);
  44. Object.setPrototypeOf(this, CertificateSet_1.prototype);
  45. }
  46. };
  47. exports.CertificateSet = CertificateSet;
  48. exports.CertificateSet = CertificateSet = CertificateSet_1 = tslib_1.__decorate([
  49. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Set, itemType: CertificateChoices })
  50. ], CertificateSet);