attribute.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. var PKCS12AttrSet_1;
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.PKCS12AttrSet = exports.PKCS12Attribute = void 0;
  5. const tslib_1 = require("tslib");
  6. const asn1_schema_1 = require("@peculiar/asn1-schema");
  7. class PKCS12Attribute {
  8. attrId = "";
  9. attrValues = [];
  10. constructor(params = {}) {
  11. Object.assign(params);
  12. }
  13. }
  14. exports.PKCS12Attribute = PKCS12Attribute;
  15. tslib_1.__decorate([
  16. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  17. ], PKCS12Attribute.prototype, "attrId", void 0);
  18. tslib_1.__decorate([
  19. (0, asn1_schema_1.AsnProp)({
  20. type: asn1_schema_1.AsnPropTypes.Any, repeated: "set",
  21. })
  22. ], PKCS12Attribute.prototype, "attrValues", void 0);
  23. let PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet extends asn1_schema_1.AsnArray {
  24. constructor(items) {
  25. super(items);
  26. Object.setPrototypeOf(this, PKCS12AttrSet_1.prototype);
  27. }
  28. };
  29. exports.PKCS12AttrSet = PKCS12AttrSet;
  30. exports.PKCS12AttrSet = PKCS12AttrSet = PKCS12AttrSet_1 = tslib_1.__decorate([
  31. (0, asn1_schema_1.AsnType)({
  32. type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: PKCS12Attribute,
  33. })
  34. ], PKCS12AttrSet);