issuer_serial.js 782 B

123456789101112131415161718192021222324
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter, } from "@peculiar/asn1-schema";
  3. import { GeneralNames, } from "@peculiar/asn1-x509";
  4. export class IssuerSerial {
  5. issuer = new GeneralNames();
  6. serial = new ArrayBuffer(0);
  7. issuerUID = new ArrayBuffer(0);
  8. constructor(params = {}) {
  9. Object.assign(this, params);
  10. }
  11. }
  12. __decorate([
  13. AsnProp({ type: GeneralNames })
  14. ], IssuerSerial.prototype, "issuer", void 0);
  15. __decorate([
  16. AsnProp({
  17. type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter,
  18. })
  19. ], IssuerSerial.prototype, "serial", void 0);
  20. __decorate([
  21. AsnProp({
  22. type: AsnPropTypes.BitString, optional: true,
  23. })
  24. ], IssuerSerial.prototype, "issuerUID", void 0);