revocation_info_choice.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. var RevocationInfoChoices_1;
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.RevocationInfoChoices = exports.RevocationInfoChoice = exports.OtherRevocationInfoFormat = exports.id_ri_scvp = exports.id_ri_ocsp_response = exports.id_ri = 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. exports.id_ri = `${asn1_x509_1.id_pkix}.16`;
  9. exports.id_ri_ocsp_response = `${exports.id_ri}.2`;
  10. exports.id_ri_scvp = `${exports.id_ri}.4`;
  11. class OtherRevocationInfoFormat {
  12. constructor(params = {}) {
  13. this.otherRevInfoFormat = "";
  14. this.otherRevInfo = new ArrayBuffer(0);
  15. Object.assign(this, params);
  16. }
  17. }
  18. exports.OtherRevocationInfoFormat = OtherRevocationInfoFormat;
  19. tslib_1.__decorate([
  20. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  21. ], OtherRevocationInfoFormat.prototype, "otherRevInfoFormat", void 0);
  22. tslib_1.__decorate([
  23. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any })
  24. ], OtherRevocationInfoFormat.prototype, "otherRevInfo", void 0);
  25. let RevocationInfoChoice = class RevocationInfoChoice {
  26. constructor(params = {}) {
  27. this.other = new OtherRevocationInfoFormat();
  28. Object.assign(this, params);
  29. }
  30. };
  31. exports.RevocationInfoChoice = RevocationInfoChoice;
  32. tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnProp)({ type: OtherRevocationInfoFormat, context: 1, implicit: true })
  34. ], RevocationInfoChoice.prototype, "other", void 0);
  35. exports.RevocationInfoChoice = RevocationInfoChoice = tslib_1.__decorate([
  36. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
  37. ], RevocationInfoChoice);
  38. let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoices extends asn1_schema_1.AsnArray {
  39. constructor(items) {
  40. super(items);
  41. Object.setPrototypeOf(this, RevocationInfoChoices_1.prototype);
  42. }
  43. };
  44. exports.RevocationInfoChoices = RevocationInfoChoices;
  45. exports.RevocationInfoChoices = RevocationInfoChoices = RevocationInfoChoices_1 = tslib_1.__decorate([
  46. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Set, itemType: RevocationInfoChoice })
  47. ], RevocationInfoChoices);