attribute.js 918 B

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