revocation_info_choice.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var RevocationInfoChoices_1;
  2. import { __decorate } from "tslib";
  3. import { AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, AsnArray } from "@peculiar/asn1-schema";
  4. import { id_pkix } from "@peculiar/asn1-x509";
  5. export const id_ri = `${id_pkix}.16`;
  6. export const id_ri_ocsp_response = `${id_ri}.2`;
  7. export const id_ri_scvp = `${id_ri}.4`;
  8. export class OtherRevocationInfoFormat {
  9. constructor(params = {}) {
  10. this.otherRevInfoFormat = "";
  11. this.otherRevInfo = new ArrayBuffer(0);
  12. Object.assign(this, params);
  13. }
  14. }
  15. __decorate([
  16. AsnProp({ type: AsnPropTypes.ObjectIdentifier })
  17. ], OtherRevocationInfoFormat.prototype, "otherRevInfoFormat", void 0);
  18. __decorate([
  19. AsnProp({ type: AsnPropTypes.Any })
  20. ], OtherRevocationInfoFormat.prototype, "otherRevInfo", void 0);
  21. let RevocationInfoChoice = class RevocationInfoChoice {
  22. constructor(params = {}) {
  23. this.other = new OtherRevocationInfoFormat();
  24. Object.assign(this, params);
  25. }
  26. };
  27. __decorate([
  28. AsnProp({ type: OtherRevocationInfoFormat, context: 1, implicit: true })
  29. ], RevocationInfoChoice.prototype, "other", void 0);
  30. RevocationInfoChoice = __decorate([
  31. AsnType({ type: AsnTypeTypes.Choice })
  32. ], RevocationInfoChoice);
  33. export { RevocationInfoChoice };
  34. let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoices extends AsnArray {
  35. constructor(items) {
  36. super(items);
  37. Object.setPrototypeOf(this, RevocationInfoChoices_1.prototype);
  38. }
  39. };
  40. RevocationInfoChoices = RevocationInfoChoices_1 = __decorate([
  41. AsnType({ type: AsnTypeTypes.Set, itemType: RevocationInfoChoice })
  42. ], RevocationInfoChoices);
  43. export { RevocationInfoChoices };