ietf_attr_syntax.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. cotets;
  9. oid;
  10. string;
  11. constructor(params = {}) {
  12. Object.assign(this, params);
  13. }
  14. }
  15. exports.IetfAttrSyntaxValueChoices = IetfAttrSyntaxValueChoices;
  16. tslib_1.__decorate([
  17. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString })
  18. ], IetfAttrSyntaxValueChoices.prototype, "cotets", void 0);
  19. tslib_1.__decorate([
  20. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier })
  21. ], IetfAttrSyntaxValueChoices.prototype, "oid", void 0);
  22. tslib_1.__decorate([
  23. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Utf8String })
  24. ], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
  25. class IetfAttrSyntax {
  26. policyAuthority;
  27. values = [];
  28. constructor(params = {}) {
  29. Object.assign(this, params);
  30. }
  31. }
  32. exports.IetfAttrSyntax = IetfAttrSyntax;
  33. tslib_1.__decorate([
  34. (0, asn1_schema_1.AsnProp)({
  35. type: asn1_x509_1.GeneralNames, implicit: true, context: 0, optional: true,
  36. })
  37. ], IetfAttrSyntax.prototype, "policyAuthority", void 0);
  38. tslib_1.__decorate([
  39. (0, asn1_schema_1.AsnProp)({
  40. type: IetfAttrSyntaxValueChoices, repeated: "sequence",
  41. })
  42. ], IetfAttrSyntax.prototype, "values", void 0);