revocation_info_choice.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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, context: 1, implicit: true,
  30. })
  31. ], RevocationInfoChoice.prototype, "other", void 0);
  32. RevocationInfoChoice = __decorate([
  33. AsnType({ type: AsnTypeTypes.Choice })
  34. ], RevocationInfoChoice);
  35. export { RevocationInfoChoice };
  36. let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoices extends AsnArray {
  37. constructor(items) {
  38. super(items);
  39. Object.setPrototypeOf(this, RevocationInfoChoices_1.prototype);
  40. }
  41. };
  42. RevocationInfoChoices = RevocationInfoChoices_1 = __decorate([
  43. AsnType({
  44. type: AsnTypeTypes.Set, itemType: RevocationInfoChoice,
  45. })
  46. ], RevocationInfoChoices);
  47. export { RevocationInfoChoices };