ietf_attr_syntax.js 1.0 KB

1234567891011121314151617181920212223242526272829
  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. constructor(params = {}) {
  6. Object.assign(this, params);
  7. }
  8. }
  9. __decorate([
  10. AsnProp({ type: OctetString })
  11. ], IetfAttrSyntaxValueChoices.prototype, "cotets", void 0);
  12. __decorate([
  13. AsnProp({ type: AsnPropTypes.ObjectIdentifier })
  14. ], IetfAttrSyntaxValueChoices.prototype, "oid", void 0);
  15. __decorate([
  16. AsnProp({ type: AsnPropTypes.Utf8String })
  17. ], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
  18. export class IetfAttrSyntax {
  19. constructor(params = {}) {
  20. this.values = [];
  21. Object.assign(this, params);
  22. }
  23. }
  24. __decorate([
  25. AsnProp({ type: GeneralNames, implicit: true, context: 0, optional: true })
  26. ], IetfAttrSyntax.prototype, "policyAuthority", void 0);
  27. __decorate([
  28. AsnProp({ type: IetfAttrSyntaxValueChoices, repeated: "sequence" })
  29. ], IetfAttrSyntax.prototype, "values", void 0);