ietf_attr_syntax.js 1.1 KB

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