attribute.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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,
  21. repeated: "set",
  22. })
  23. ], PKCS12Attribute.prototype, "attrValues", void 0);
  24. let PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet extends asn1_schema_1.AsnArray {
  25. constructor(items) {
  26. super(items);
  27. Object.setPrototypeOf(this, PKCS12AttrSet_1.prototype);
  28. }
  29. };
  30. exports.PKCS12AttrSet = PKCS12AttrSet;
  31. exports.PKCS12AttrSet = PKCS12AttrSet = PKCS12AttrSet_1 = tslib_1.__decorate([
  32. (0, asn1_schema_1.AsnType)({
  33. type: asn1_schema_1.AsnTypeTypes.Sequence,
  34. itemType: PKCS12Attribute,
  35. })
  36. ], PKCS12AttrSet);