aa_clear_attrs.js 674 B

1234567891011121314151617181920
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
  3. import { GeneralName, Attribute } from "@peculiar/asn1-x509";
  4. export class ACClearAttrs {
  5. constructor(params = {}) {
  6. this.acIssuer = new GeneralName();
  7. this.acSerial = 0;
  8. this.attrs = [];
  9. Object.assign(this, params);
  10. }
  11. }
  12. __decorate([
  13. AsnProp({ type: GeneralName })
  14. ], ACClearAttrs.prototype, "acIssuer", void 0);
  15. __decorate([
  16. AsnProp({ type: AsnPropTypes.Integer })
  17. ], ACClearAttrs.prototype, "acSerial", void 0);
  18. __decorate([
  19. AsnProp({ type: Attribute, repeated: "sequence" })
  20. ], ACClearAttrs.prototype, "attrs", void 0);