signer_identifier.js 844 B

12345678910111213141516171819202122232425
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnType, AsnTypeTypes } from "@peculiar/asn1-schema";
  3. import { SubjectKeyIdentifier } from "@peculiar/asn1-x509";
  4. import { IssuerAndSerialNumber } from "./issuer_and_serial_number.js";
  5. let SignerIdentifier = class SignerIdentifier {
  6. subjectKeyIdentifier;
  7. issuerAndSerialNumber;
  8. constructor(params = {}) {
  9. Object.assign(this, params);
  10. }
  11. };
  12. __decorate([
  13. AsnProp({
  14. type: SubjectKeyIdentifier,
  15. context: 0,
  16. implicit: true,
  17. })
  18. ], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
  19. __decorate([
  20. AsnProp({ type: IssuerAndSerialNumber })
  21. ], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
  22. SignerIdentifier = __decorate([
  23. AsnType({ type: AsnTypeTypes.Choice })
  24. ], SignerIdentifier);
  25. export { SignerIdentifier };