revocation_info_choice.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. otherRevInfoFormat = "";
  13. otherRevInfo = new ArrayBuffer(0);
  14. constructor(params = {}) {
  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. other = new OtherRevocationInfoFormat();
  27. constructor(params = {}) {
  28. Object.assign(this, params);
  29. }
  30. };
  31. exports.RevocationInfoChoice = RevocationInfoChoice;
  32. tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnProp)({
  34. type: OtherRevocationInfoFormat, context: 1, implicit: true,
  35. })
  36. ], RevocationInfoChoice.prototype, "other", void 0);
  37. exports.RevocationInfoChoice = RevocationInfoChoice = tslib_1.__decorate([
  38. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
  39. ], RevocationInfoChoice);
  40. let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoices extends asn1_schema_1.AsnArray {
  41. constructor(items) {
  42. super(items);
  43. Object.setPrototypeOf(this, RevocationInfoChoices_1.prototype);
  44. }
  45. };
  46. exports.RevocationInfoChoices = RevocationInfoChoices;
  47. exports.RevocationInfoChoices = RevocationInfoChoices = RevocationInfoChoices_1 = tslib_1.__decorate([
  48. (0, asn1_schema_1.AsnType)({
  49. type: asn1_schema_1.AsnTypeTypes.Set, itemType: RevocationInfoChoice,
  50. })
  51. ], RevocationInfoChoices);