ietf_attr_syntax.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.IetfAttrSyntax = exports.IetfAttrSyntaxValueChoices = void 0;
  4. const tslib_1 = require("tslib");
  5. const asn1_schema_1 = require("@peculiar/asn1-schema");
  6. const asn1_x509_1 = require("@peculiar/asn1-x509");
  7. class IetfAttrSyntaxValueChoices {
  8. constructor(params = {}) {
  9. Object.assign(this, params);
  10. }
  11. }
  12. exports.IetfAttrSyntaxValueChoices = IetfAttrSyntaxValueChoices;
  13. tslib_1.__decorate([
  14. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString })
  15. ], IetfAttrSyntaxValueChoices.prototype, "cotets", void 0);
  16. tslib_1.__decorate([
  17. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  18. ], IetfAttrSyntaxValueChoices.prototype, "oid", void 0);
  19. tslib_1.__decorate([
  20. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Utf8String })
  21. ], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
  22. class IetfAttrSyntax {
  23. constructor(params = {}) {
  24. this.values = [];
  25. Object.assign(this, params);
  26. }
  27. }
  28. exports.IetfAttrSyntax = IetfAttrSyntax;
  29. tslib_1.__decorate([
  30. (0, asn1_schema_1.AsnProp)({ type: asn1_x509_1.GeneralNames, implicit: true, context: 0, optional: true })
  31. ], IetfAttrSyntax.prototype, "policyAuthority", void 0);
  32. tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnProp)({ type: IetfAttrSyntaxValueChoices, repeated: "sequence" })
  34. ], IetfAttrSyntax.prototype, "values", void 0);