revocation_info_choice.js 1.7 KB

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