دالة Authentication [SWS_DM_01124] Upstream: RS_Diag_04251, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173
explicit Authentication (const ara::core::InstanceSpecifier &specifier, ConcurrencyType concurrencyType) noexcept;
Constructor of Authentication.
يقوم المنشئ بتهيئة كائن من فئة المعالج ara::diag::Authentication بشكل متزامن لمعالجة طلبات مصادقة التشخيص على منفذ برمجي [SWS_DM_01124]. وتُشير المعلمة specifier إلى PortPrototype المصمم، والذي يجب أن يتم تعيين نوعه إلزاميًا عبر DiagnosticAuthenticationPortMapping بواسطة DiagnosticAuthenticationInterface [SWS_DM_01124]. وتُحدد المعلمة concurrencyType ما إذا كان إطار العمل يسلم استدعاءات الطرق بشكل متزامن (kConcurrent) أو بشكل غير آمن لخيوط المعالجة (kNotConcurrent) [SWS_DM_01124].
نظرًا لأن الدالة معلنة على أنها noexcept، لا يتم الإبلاغ عن الاستدعاءات الخاطئة عبر استثناءات، بل تؤدي إلى إطلاق انتهاكات لإطار العمل (Violations) [SWS_DM_01124]:
InstanceSpecifierMappingIntegrityViolation: لا يمكن حل المعرّف في سياق الملف التنفيذي أو أنه لا يشير إلىPortPrototype[SWS_DM_01124].PortInterfaceMappingViolation: الـPortPrototypeالمشار إليه ليس مصممًا كـDiagnosticAuthenticationInterface[SWS_DM_01124].ProcessMappingViolation: لم يتم العثور على عملية مصممة مناسبة في وقت التشغيل [SWS_DM_01124].InstanceSpecifierAlreadyInUseViolation: تم استخدامInstanceSpecifierبالفعل لمثيل في العملية الحالية [SWS_DM_01124].
المُنشئ نفسه آمن لخيوط المعالجة وآمن من الاستثناءات (exception safe) [SWS_DM_01124]، بينما حُدد المُدمّر المرتبط به ~Authentication() على أنه غير آمن لخيوط المعالجة [SWS_DM_01125]. ومباشرة بعد إنشاء المثيل، لا يتم تمرير أية طلبات تشخيص بعد: إذ يجب على التطبيق أولاً استدعاء Offer() لتفعيل إعادة التوجيه لخدمة UDS رقم 0x29 (المصادقة مع PKI Certificate Exchange، APCE AUTOSAR_AP_SWS_Diagnostics Tab. 4.1 «Limitations of sub-functions of 0x19 ReadDTCInformation») بواسطة Diagnostic Manager [SWS_DM_01130]. وتتم معالجة التحقق من صحة الشهادة لاحقًا عبر VerifyCertificateUnidirectional [SWS_DM_01126]، وVerifyCertificateBidirectional [SWS_DM_01127]، وVerifyOwnership [SWS_DM_01128]. وقبل تدمير الكائن، يجب إنهاء إعادة التوجيه باستخدام StopOffer() [SWS_DM_01131].
تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي استنادًا إلى مواصفة AUTOSAR Adaptive R25-11.
دليل المنفِّذ قيد الإعداد (التعقيد I2)
| Header-Datei | #include "ara/diag/authentication.h" |
|---|---|
| Scope | class ara::diag::Authentication |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
| Verletzungen (Violations) | InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticAuthenticationPortMapping needs to be typed by a DiagnosticAuthenticationInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| specifier | InstanceSpecifier to a PortPrototype of a DiagnosticAuthenticationInterface. |
| concurrencyType | Specifies if the interface is implemented as thread safe ( kConcurrent) or non-thread safe (kNotConcurrent). |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01124- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01124@rel:R25-11#16c8b844- Content hash
16c8b844- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01124
Status: valid/unmigrated
Version: rel:R25-11#a528cb61
Versionshistorie & Revisions (1 transition, 6 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_DM_01124@rel:R25-11#a528cb61
Recorded Revisions (6):
- R25-11
rel:R25-11#869efd0b2026-09-30 - R21-11
rel:R21-11#a05195552026-10-14 - R22-11
rel:R22-11#0575421d2026-10-14 - R23-11
rel:R23-11#fe6f8f0a2026-10-14 - R24-11
rel:R24-11#85e435582026-10-14 - R25-11
rel:R25-11#a528cb612026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · الأصل الألماني