attribute.js 688 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Attribute = void 0;
  4. const tslib_1 = require("tslib");
  5. const asn1_schema_1 = require("@peculiar/asn1-schema");
  6. class Attribute {
  7. constructor(params = {}) {
  8. this.attrType = "";
  9. this.attrValues = [];
  10. Object.assign(this, params);
  11. }
  12. }
  13. exports.Attribute = Attribute;
  14. tslib_1.__decorate([
  15. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  16. ], Attribute.prototype, "attrType", void 0);
  17. tslib_1.__decorate([
  18. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any, repeated: "set" })
  19. ], Attribute.prototype, "attrValues", void 0);