signer_identifier.js 829 B

1234567891011121314151617181920212223
  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, context: 0, implicit: true,
  15. })
  16. ], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
  17. __decorate([
  18. AsnProp({ type: IssuerAndSerialNumber })
  19. ], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
  20. SignerIdentifier = __decorate([
  21. AsnType({ type: AsnTypeTypes.Choice })
  22. ], SignerIdentifier);
  23. export { SignerIdentifier };