फ़ंक्शन 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.
कंस्ट्रक्टर सॉफ़्टवेयर पोर्ट [SWS_DM_01124] पर डायग्नोस्टिक प्रमाणीकरण अनुरोधों को संभालने के लिए हैंडलर वर्ग ara::diag::Authentication के एक ऑब्जेक्ट को समकालिक रूप से आरंभ करता है। पैरामीटर specifier मॉडल किए गए PortPrototype को संदर्भित करता है, जिसे DiagnosticAuthenticationPortMapping के माध्यम से अनिवार्य रूप से एक DiagnosticAuthenticationInterface द्वारा टाइप किया जाना चाहिए [SWS_DM_01124]। पैरामीटर concurrencyType के माध्यम से, यह निर्धारित किया जाता है कि फ्रेमवर्क विधि कॉल को समवर्ती रूप से (kConcurrent) या गैर-थ्रेड-सुरक्षित (kNotConcurrent) रूप से वितरित करता है या नहीं [SWS_DM_01124]।
चूँकि फ़ंक्शन को noexcept के रूप में घोषित किया गया है, गलत कॉल की सूचना अपवादों के माध्यम से नहीं दी जाती है, बल्कि वे फ़्रेमवर्क उल्लंघनों (Violations) को ट्रिगर करते हैं [SWS_DM_01124]:
InstanceSpecifierMappingIntegrityViolation: पहचानकर्ता (identifier) को Executable के संदर्भ में रिज़ॉल्व नहीं किया जा सकता है या यह किसीPortPrototypeको संदर्भित नहीं करता है [SWS_DM_01124]।PortInterfaceMappingViolation: संदर्भितPortPrototypeकोDiagnosticAuthenticationInterfaceके रूप में मॉडल नहीं किया गया है [SWS_DM_01124]।ProcessMappingViolation: रनटाइम पर कोई उपयुक्त मॉडल किया गया प्रोसेस नहीं मिलता है [SWS_DM_01124]।InstanceSpecifierAlreadyInUseViolation:InstanceSpecifierका वर्तमान प्रोसेस में पहले से ही एक इंस्टेंस के लिए उपयोग किया जा चुका है [SWS_DM_01124]।
कंस्ट्रक्टर स्वयं थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception-safe) है [SWS_DM_01124], जबकि संबंधित डिस्ट्रक्टर ~Authentication() गैर-थ्रेड-सुरक्षित (not thread-safe) के रूप में निर्दिष्ट है [SWS_DM_01125]। इंस्टेंसिएशन के तुरंत बाद कोई डायग्नोस्टिक अनुरोध अग्रेषित नहीं किए जाते हैं: Diagnostic Manager द्वारा UDS सर्विस 0x29 (PKI Certificate Exchange, APCE के साथ Authentication AUTOSAR_AP_SWS_Diagnostics Tab. 4.1 “Limitations of sub-functions of 0x19 ReadDTCInformation”) के लिए अग्रेषण को सक्षम करने हेतु एप्लिकेशन को पहले Offer() को कॉल करना होगा [SWS_DM_01130]। सर्टिफिकेट सत्यापन को बाद में VerifyCertificateUnidirectional [SWS_DM_01126], VerifyCertificateBidirectional [SWS_DM_01127] और VerifyOwnership [SWS_DM_01128] के माध्यम से संसाधित किया जाता है। ऑब्जेक्ट विनाश (destruction) से पहले अग्रेषण को StopOffer() के साथ समाप्त किया जाना चाहिए [SWS_DM_01131]।
यह उपयोग निर्देश AUTOSAR Adaptive विनिर्देश R25-11 पर आधारित एक AI द्वारा उत्पन्न किया गया था।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता 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#3a007b75- Content hash
3a007b75- 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 · जर्मन मूल