certificate_choices.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. otherCertFormat = "";
  11. otherCert = new ArrayBuffer(0);
  12. constructor(params = {}) {
  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. certificate;
  25. v2AttrCert;
  26. other;
  27. constructor(params = {}) {
  28. Object.assign(this, params);
  29. }
  30. };
  31. exports.CertificateChoices = CertificateChoices;
  32. tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.Certificate })
  34. ], CertificateChoices.prototype, "certificate", void 0);
  35. tslib_1.__decorate([
  36. (0, asn1_schema_1.AsnProp)({
  37. type: asn1_x509_attr_1.AttributeCertificate,
  38. context: 2,
  39. implicit: true,
  40. })
  41. ], CertificateChoices.prototype, "v2AttrCert", void 0);
  42. tslib_1.__decorate([
  43. (0, asn1_schema_1.AsnProp)({
  44. type: OtherCertificateFormat,
  45. context: 3,
  46. implicit: true,
  47. })
  48. ], CertificateChoices.prototype, "other", void 0);
  49. exports.CertificateChoices = CertificateChoices = tslib_1.__decorate([
  50. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
  51. ], CertificateChoices);
  52. let CertificateSet = CertificateSet_1 = class CertificateSet extends asn1_schema_1.AsnArray {
  53. constructor(items) {
  54. super(items);
  55. Object.setPrototypeOf(this, CertificateSet_1.prototype);
  56. }
  57. };
  58. exports.CertificateSet = CertificateSet;
  59. exports.CertificateSet = CertificateSet = CertificateSet_1 = tslib_1.__decorate([
  60. (0, asn1_schema_1.AsnType)({
  61. type: asn1_schema_1.AsnTypeTypes.Set,
  62. itemType: CertificateChoices,
  63. })
  64. ], CertificateSet);