signer_identifier.js 759 B

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