attribute.js 486 B

123456789101112131415
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
  3. export class Attribute {
  4. constructor(params = {}) {
  5. this.attrType = "";
  6. this.attrValues = [];
  7. Object.assign(this, params);
  8. }
  9. }
  10. __decorate([
  11. AsnProp({ type: AsnPropTypes.ObjectIdentifier })
  12. ], Attribute.prototype, "attrType", void 0);
  13. __decorate([
  14. AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
  15. ], Attribute.prototype, "attrValues", void 0);