DEENESPTFRRUARHIKOZHNL

فئة ara::diag::Authentication

[SWS_DM_01123] Upstream: RS_Diag_04251

class Authentication {...};

Class to implement the Service Authentication interfaces to application.

Header-Datei#include "ara/diag/authentication.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

دليل المستخدممولَّد بالذكاء الاصطناعي

توفر للتطبيق واجهات لمصادقة خدمة UDS رقم 0x29 تجاه أجهزة اختبار التشخيص الخارجية.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: a55f7043e3c0 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

توفر للتطبيق واجهات لمصادقة خدمة UDS رقم 0x29 تجاه أجهزة اختبار التشخيص الخارجية.

تُستخدم الفئة ara::diag::Authentication كواجهة من جانب التطبيق لتنفيذ مصادقة خدمة UDS رقم 0x29 تجاه أجهزة الاختبار الخارجية (AUTOSAR AP SWS Diagnostics ص. 63). بعد التهيئة والتنشيط عبر Offer()، يتولى التطبيق فحص الشهادة وكذلك إثبات الملكية (Proof of Ownership) عبر عمليات استدعاء راجع غير متزامنة ([SWS_DM_01126]، [SWS_DM_01130]). المثيلات غير قابلة للنسخ أو النقل وتُربط بـ Diagnostic Management عبر InstanceSpecifier خاص بالمنفذ ([SWS_DM_01124]، [SWS_DM_01609]).

السياق

توفر الفئة ara::diag::Authentication الواجهة من جانب التطبيق للتعامل مع خدمة UDS رقم 0x29 (المصادقة - Authentication) ضمن AUTOSAR Adaptive Platform (AUTOSAR AP SWS Diagnostics ص. 63). وهي تعمل كأساس آمن للأنواع لمعالجات خاصة بالتطبيق، والتي تتحكم في المصادقة التشفيرية لاتصالات التشخيص الواردة وتنفذها.

في معمارية النظام، تتفاعل الفئة مع طرفين رئيسيين: جهاز اختبار التشخيص الخارجي، الذي يوجّه طلبات المصادقة إلى المركبة، وDiagnostic Management (DM) داخل المركبة، والذي يستقبل رسائل التشخيص ويرشحها ويعيد توجيهها إلى المعالجات المسجلة ([SWS_DM_01130]). ينفذ التطبيق وظائف الواجهة المحددة بواسطة ara::diag::Authentication للتحقق من الشهادات وحساب التحديات (Challenges) وإنشاء مفاتيح الجلسة ([SWS_DM_01126]، [SWS_DM_01128]).

AuthenticationKontext Tester Tester DiagnosticManagement DiagnosticManagement Tester->DiagnosticManagement UDS 0x29 DiagnosticManagement->Tester UDS Response AuthenticationHandler AuthenticationHandler DiagnosticManagement->AuthenticationHandler Verify-Callbacks AuthenticationHandler->DiagnosticManagement Offer / StopOffer

مخطط السياق: تضمين معالج المصادقة (Authentication Handler) بين Diagnostic Management وجهاز اختبار التشخيص الخارجي. المصادر: [SWS_DM_01124]، [SWS_DM_01130]، AUTOSAR AP SWS Diagnostics ص. 63

دورة الحياة

تُربط مثيلات ara::diag::Authentication بنموذج منفذ محدد. يتوقع المنشئ ara::core::InstanceSpecifier، يشير إلى PortPrototype خاص بـ DiagnosticAuthenticationInterface، بالإضافة إلى المعلمة ConcurrencyType ([SWS_DM_01124]). تحدد الأخيرة ما إذا كان التنفيذ مصمماً ليكون آمناً لخيوط التنفيذ (kConcurrent) أو غير آمن لخيوط التنفيذ (kNotConcurrent) ([SWS_DM_01124]). ونظراً لأنه يمكن استدعاء عمليات الاستدعاء الراجع للتحقق بصورة متكررة الدخول (reentrant) لعملاء مختلفين ([SWS_DM_01126]، [SWS_DM_01127])، يُفترض أن تقوم Diagnostic Management بتسلسل الاستدعاءات الموجهة إلى المثيل عند kNotConcurrent. سؤال Q-5d890d01c54e70ca (مفتوح)

فيما يتعلق بعلاقة الملكية، تُعرَّف ara::diag::Authentication بصرامة كمثيل فردي غير قابل للنسخ وغير قابل للنقل: فقد تم حذف كل من منشئات النسخ والنقل وكذلك معاملات التعيين المقابلة لها بشكل صريح ([SWS_DM_01609]، [SWS_DM_01610]، [SWS_DM_01607]، [SWS_DM_01608]). بعد إنشاء المثيل، لا تقبل الفئة الطلبات تلقائياً. وفقط من خلال استدعاء Offer()، يُصرَّح لـ Diagnostic Management بإعادة توجيه طلبات المصادقة الواردة إلى المثيل ([SWS_DM_01130]). ويمكن إلغاء تنشيط إعادة التوجيه في أي وقت عبر StopOffer() ([SWS_DM_01131]). يتم تحرير الموارد بشكل حتمي عبر الهدام الظاهري ~Authentication() ([SWS_DM_01125]).

مسار الاستخدام

تتضمن حالة الاستخدام النموذجية تقديم الخدمة، وفحص الشهادة، وكذلك إثبات ملكية المفتاح (Proof of Ownership):

  1. تقديم الخدمة: بعد إنشاء المثيل، يسجل التطبيق نفسه لدى Diagnostic Management عبر Offer() ([SWS_DM_01130]).
  2. التحقق من الشهادة: عند وصول طلب مصادقة من جهاز الاختبار، يعيد DM توجيهه إلى الطريقة المسؤولة:
    • في حالة المصادقة أحادية الاتجاه، يستدعي DM ‏VerifyCertificateUnidirectional(...) ([SWS_DM_01126]). يتحقق التطبيق من صحة شهادة العميل المُمررة ويُرجع بشكل غير متزامن عبر ara::core::Future صفًا يتألف من تحدي الخادم والمفتاح العام المؤقت للخادم.
    • في حالة المصادقة ثنائية الاتجاه، يستدعي DM ‏VerifyCertificateBidirectional(...) ([SWS_DM_01127]). يقوم التطبيق هنا بالإضافة إلى ذلك بإنشاء شهادة الخادم بالإضافة إلى إثبات الملكية الخاص به (Proof of Ownership) لجهاز الفحص.
  3. إثبات الملكية (Proof of Ownership): إذا استجاب جهاز الفحص لتحدي الخادم، يستدعي DM الطريقة VerifyOwnership(...) ([SWS_DM_01128]). يتحقق التطبيق من clientPOWN المُمرر إلى جانب المفتاح المؤقت للعميل مقابل التحدي الذي تم إنشاؤه مسبقًا. وفي حالة النجاح، يُرجع الـ Future معلومات مفتاح الجلسة.
  4. إنهاء الخدمة: إذا كان يتعين إغلاق الواجهة، يستدعي التطبيق StopOffer() ([SWS_DM_01131]).
سير عملية المصادقة أحادية الاتجاهجهاز اختبار التشخيصDiagnostic ManagementAuthentication-HandlerOffer()Result<void>UDS 0x29 (VerifyCertificateUnidirectional)VerifyCertificateUnidirectional(...)Zertifikat verifizieren, Challenge & Key erzeugenFuture-Ergebnis: Challenge, Ephemeral KeyPositive Response مع تحدي الخادم وKeyUDS 0x29 (VerifyOwnership مع POWN وKey)VerifyOwnership(clientPOWN, clientEphemeralKey, ...)POWN verifizieren & Session Key berechnenFuture-Ergebnis: Session Key InfoPositive Response

مخطط تسلسلي: مسار مصادقة أحادية الاتجاه مع تحقق لاحق من إثبات الملكية. المصادر: [SWS_DM_01126]، [SWS_DM_01128]، [SWS_DM_01130]

سيناريوهات الأخطاء

عند استخدام ara::diag::Authentication، يجب التمييز بين أخطاء النموذج الثابتة وأخطاء وقت التشغيل الديناميكية:

  • انتهاكات البناء: إذا كان تكوين النموذج لا يتطابق مع العملية أو إذا كان InstanceSpecifier معيبًا، يفشل البناء مع انتهاكات محددة (من بينها InstanceSpecifierMappingIntegrityViolation، PortInterfaceMappingViolation، ProcessMappingViolation أو InstanceSpecifierAlreadyInUseViolation) ([SWS_DM_01124]).
  • خطأ في الحالة عند العرض (Offer): يفشل استدعاء متكرر لـ Offer() عندما تكون الخدمة معروضة بالفعل مع رمز الخطأ DiagOfferErrc::kAlreadyOffered ([SWS_DM_01130]).
  • أخطاء تشفيرية وبروتوكولية: إذا فشل التحقق من شهادة العميل أو من Proof of Ownership، يجب على التطبيق تسوية الـ Future برمز استجابة سلبية مناسب لـ UDS‏ (NRC) وفقًا للمعيار ISO 14229-1 عبر DiagUdsNrcErrc ([SWS_DM_01126]، [SWS_DM_01127]، [SWS_DM_01128]).
  • قطع الاتصال: إذا تم إلغاء محادثة تشخيص جارية، يُشير DM إلى ذلك عبر الكائن CancellationHandler ([SWS_DM_01126]). يمكن للتطبيق الاستعلام عن الحالة عبر cancellationHandler.IsCanceled() أو تعيين دالة استدعاء رجعي عبر SetNotifier. تظل نطاقات البيانات (Spans) المُمررة صالحة فقط حتى يتم استيفاء الـ Promise أو إلغاء المعالجة ([SWS_DM_01126]، [SWS_DM_01128]).

تم إنشاء دليل الفئات هذا تلقائيًا ويستند إلى مواصفة AUTOSAR Adaptive Platform الإصدار R25-11.

خريطة الأعضاء

مخطط الفئة

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__diag__Authentication309 Authentication + Authentication() + operator=() + ~Authentication() + Offer() + StopOffer() + VerifyCertificateBidirectional() + VerifyCertificateUnidirectional() + VerifyOwnership()

عرض التفاصيل

اختر عنصرًا من المخطط.

المُنشئات والمُتلف

Authentication دالة 3

Constructor of Authentication.

التحميلات الزائدة Authentication 3
explicit Authentication (const ara::core::InstanceSpecifier &specifier, ConcurrencyType concurrencyType) noexcept; SWS_DM_01124
Authentication (Authentication &)=delete; SWS_DM_01609
Authentication (Authentication &&) noexcept=delete; SWS_DM_01610

Destructor of Authentication.

virtual ~Authentication () noexcept;

الدوال الأعضاء

Offer دالة

This Offer will enable the DM to forward request messages to this handler.

ara::core::Result< void > Offer () noexcept;
StopOffer دالة

This StopOffer will disable the forwarding of request messages from DM.

void StopOffer () noexcept;

This function accepts the certificate and challenge received from the tester, verifies the certificate, and creates a challenge, Ephemeral Public Key and Proof Of Ownership that must be returned to the tester. The function also returns the server certificate that will be used by the tester to verify the Proof Of Ownership. This callback may be called re-entrant to requests from different clients.

virtual ara::core::Future< std::tuple< ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte > > > VerifyCertificateBidirectional (ara::core::Byte communicationConfiguration, ara::core::Span< const ara::core::Byte > clientCertificate, ara::core::Span< const ara::core::Byte > client Challenge, const MetaInfo &metaInfo, CancellationHandler cancellation Handler) noexcept=0;

This function accepts the certificate received from the tester, verifies it, and creates a challenge and ephemeral public key that must be returned to the tester. This callback may be called re-entrant to requests from different clients

virtual ara::core::Future< std::tuple< ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte > > > Verify CertificateUnidirectional (ara::core::Byte communicationConfiguration, ara::core::Span< const ara::core::Byte > clientCertificate, ara::core::Span< const ara::core::Byte > clientChallenge, const Meta Info &metaInfo, CancellationHandler cancellationHandler) noexcept=0;

This function accepts the Proof Of Ownership received from the tester and verifies it with the Public Key of the certificate received in the verifyCertificateUnidirectional / verifyCertificate Bidirectional against the server challenge created in the last call to verifyCertificateUnidirectional / verifyCertificateBidirectional.

virtual ara::core::Future< ara::core::Vector< ara::core::Byte > > VerifyOwnership (ara::core::Span< const ara::core::Byte > clientPOWN, ara::core::Span< const ara::core::Byte > clientEphemeralPublicKey, const MetaInfo &metaInfo, CancellationHandler cancellationHandler) noexcept=0;

المعاملات

operator= دالة 2

Authentication shall be a single not assignable instance.

التحميلات الزائدة = 2

توثيق الدوال

دالة 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.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 906bc324edb3 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يقوم المنشئ بتهيئة كائن من فئة المعالج 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"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitthread-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)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticAuthenticationInterface.
concurrencyTypeSpecifies 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
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#869efd0b2026-09-30
  • R21-11rel:R21-11#a05195552026-10-14
  • R22-11rel:R22-11#0575421d2026-10-14
  • R23-11rel:R23-11#fe6f8f0a2026-10-14
  • R24-11rel:R24-11#85e435582026-10-14
  • R25-11rel:R25-11#a528cb612026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Authentication [SWS_DM_01609] Upstream: RS_AP_00147

Authentication (Authentication &)=delete;

Authentication shall be a single not copy-able instance.

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01609
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01609@rel:R25-11#bb58346e
Content hash
bb58346e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01609
Status: valid/unmigrated Version: rel:R25-11#3da2cab5 Versionshistorie & Revisions (1 transition, 4 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_01609@rel:R25-11#3da2cab5
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#7e225c2d2026-09-30
  • R23-11rel:R23-11#4d1637062026-10-14
  • R24-11rel:R24-11#3da2cab52026-10-14
  • R25-11rel:R25-11#3da2cab52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Authentication [SWS_DM_01610] Upstream: RS_AP_00147

Authentication (Authentication &&) noexcept=delete;

Move constructor of Authentication.

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01610
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01610@rel:R25-11#0f36be61
Content hash
0f36be61
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01610
Status: valid/unmigrated Version: rel:R25-11#15116263 Versionshistorie & Revisions (1 transition, 4 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_01610@rel:R25-11#15116263
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#528b40c12026-09-30
  • R23-11rel:R23-11#a56d73ab2026-10-14
  • R24-11rel:R24-11#151162632026-10-14
  • R25-11rel:R25-11#151162632026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Offer [SWS_DM_01130] Upstream: RS_Diag_04251

ara::core::Result< void > Offer () noexcept;

This Offer will enable the DM to forward request messages to this handler.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 082dbe15e2bd المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

باستخدام الطريقة المتزامنة Offer() للفئة ara::diag::Authentication ([SWS_DM_01130])، يسجل تطبيق Adaptive Application معالج المصادقة الخاص به لدى Diagnostic Management (DM). وبذلك يتم تخويل DM وتمكينه من إعادة توجيه الطلبات الواردة إلى هذا المعالج (AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.3.1 «Offer»). لا تأخذ الدالة أي معلمات تمرير وتشير إلى نتيجة العملية عبر نوع الإرجاع ara::core::Result<void>.

الاستدعاء مصرح به كـ noexcept وبالتالي فهو آمن من الاستثناءات ([SWS_DM_01130]). وإذا فشل التسجيل لأن الخدمة قد قُدمت بالفعل لهذا المثيل سابقًا، فسيتم إرجاع رمز الخطأ المحدد DiagOfferErrc::kAlreadyOffered في كائن Result ([SWS_DM_01130]). بالإضافة إلى ذلك، تم تحديد الواجهة على أنها not thread-safe؛ ويُرجح أنه لا يجوز إجراء وصول متزامن إلى نفس المثيل دون حماية، ويجب مزامنته من جانب التطبيق. سؤال Q-51ab72e4e72a7351 (مفتوح)

في دورة حياة معالجة التشخيص، يتوافق Offer() مباشرة مع الدالة المضادة StopOffer() ([SWS_DM_01131]، AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.3.2 «StopOffer»)، والتي تنهي إعادة توجيه الطلبات مرة أخرى. يتبع هذا النمط نهج التوفير الموحد لمعالجات التشخيص، كما يُطبق على سبيل المثال أيضًا مع ara::diag::CommunicationControl::Offer ([SWS_DM_00809]) أو ara::diag::DoIPPowerMode::Offer ([SWS_DM_00735])، حيث لا يمكن معالجة الطلبات إلا بعد تقديم صريح من قِبل التطبيق ([SWS_DM_01525]).

تم إنشاء ملاحظة الاستخدام هذه آليًا بواسطة مساعد التنسيق بالذكاء الاصطناعي استنادًا إلى حالة مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an error.

Fehler

FehlercodeBeschreibung
DiagOfferErrc::kAlreadyOfferedrollback_semantics The service is already offered.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01130
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01130@rel:R25-11#bf2e53d5
Content hash
bf2e53d5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01130
Status: valid/unmigrated Version: rel:R25-11#ceefb477 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_01130@rel:R25-11#ceefb477
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#78b7f7aa2026-09-30
  • R21-11rel:R21-11#2d6054a22026-10-14
  • R22-11rel:R22-11#61d3a12b2026-10-14
  • R23-11rel:R23-11#d2d63def2026-10-14
  • R24-11rel:R24-11#66beb2132026-10-14
  • R25-11rel:R25-11#ceefb4772026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة StopOffer [SWS_DM_01131] Upstream: RS_Diag_04251

void StopOffer () noexcept;

This StopOffer will disable the forwarding of request messages from DM.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 4aa6d764eb2f المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تلغي الطريقة StopOffer للفئة ara::diag::Authentication (المعرفة في ara/diag/authentication.h) تفعيل إعادة توجيه رسائل الطلب بواسطة Diagnostic Manager (DM) إلى النسخة [SWS_DM_01131]. ويتم تنفيذ الاستدعاء بشكل متزامن، ولا يتطلب أي معلمات تمرير وليس له قيمة إرجاع AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.3.2 «StopOffer».

معالجة الأخطاء وأمان التنفيذ

الدالة محددة على أنها آمنة من الاستثناءات (noexcept)؛ ولم يتم تعريف رموز أخطاء محددة أو استثناءات [SWS_DM_01131].

التزامن والقيود

تم تصنيف العملية صراحةً على أنها غير آمنة خيطياً (”not thread-safe“) [SWS_DM_01131]. ويجب مزامنة الاستدعاءات المتزامنة على نفس النسخة بواسطة التطبيق المستدعي.

التفاعل والمرجعية المعمارية

يُستخدم نمط التصميم لـ StopOffer في Adaptive Diagnostic Manager بشكل متسق عبر مختلف الخدمات والمعالجات، بما في ذلك SecurityAccess [SWS_DM_00767]، وCommunicationControl [SWS_DM_00810]، وDownloadService [SWS_DM_00793]، وكذلك EcuResetRequest [SWS_DM_01017]. ومع أن التسمية مستوحاة من توفير الخدمة في ara::com، إلا أنها تمثل تنفيذاً خاصاً بالتشخيص AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 «Monitors». تفسير: قبل إلغاء التفعيل بواسطة StopOffer، يُرجح أن النسخة كانت تتلقى الطلبات بنشاط في السابق عبر دالة توفير. سؤال Q-da990416e53707ed (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR AP R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01131@rel:R25-11#aa173554
Content hash
aa173554
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01131
Status: valid/unmigrated Version: rel:R25-11#7692df5e 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_01131@rel:R25-11#7692df5e
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#23d4ebca2026-09-30
  • R21-11rel:R21-11#334e81982026-10-14
  • R22-11rel:R22-11#e0037c802026-10-14
  • R23-11rel:R23-11#df69c0c42026-10-14
  • R24-11rel:R24-11#0a4f51072026-10-14
  • R25-11rel:R25-11#7692df5e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة VerifyCertificateBidirectional [SWS_DM_01127] Upstream: RS_Diag_04251, RS_AP_00128

virtual ara::core::Future< std::tuple< ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte > > > VerifyCertificateBidirectional (ara::core::Byte communicationConfiguration, ara::core::Span< const ara::core::Byte > clientCertificate, ara::core::Span< const ara::core::Byte > client Challenge, const MetaInfo &metaInfo, CancellationHandler cancellation Handler) noexcept=0;

This function accepts the certificate and challenge received from the tester, verifies the certificate, and creates a challenge, Ephemeral Public Key and Proof Of Ownership that must be returned to the tester. The function also returns the server certificate that will be used by the tester to verify the Proof Of Ownership. This callback may be called re-entrant to requests from different clients.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 96bce3dceaab المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يتم استدعاء دالة الاستدعاء الراجع (Callback) الافتراضية الصرفة VerifyCertificateBidirectional للواجهة ara::diag::Authentication ([SWS_DM_01127]) بواسطة خادم التشخيص بمجرد وصول طلب تشخيص لخدمة UDS ذات الرمز 0x29 (Authentication) بالدالة الفرعية 0x02 (verifyCertificateBidirectional) واجتياز الفحوصات الأولية بنجاح ([SWS_DM_01235]، AUTOSAR_AP_SWS_Diagnostics §7.3.2.8.11.3 «Service 0x29 – verifyCertificateBidirectional (0x02)»).

الاستخدام والدلالة:\nيمرر الخادم تكوين الاتصال بالإضافة إلى بيانات الشهادة والتحدي المستلمة من جهاز الاختبار عبر communicationConfiguration وclientCertificate وclientChallenge جنبًا إلى جنب مع metaInfo وcancellationHandler ([SWS_DM_01127]، [SWS_DM_01235]). وتظل مخازن Spans المؤقتة للإدخال صالحة حتى يتم استيفاء ara::core::Future المُعاد عبر Promise المرتبط أو يتم إلغاء العملية ([SWS_DM_01127]). وبشكل غير متزامن، تُرجع الدالة صفًا رباعيًا يتكون من تحدي الخادم، وشهادة الخادم، وإثبات الملكية المحسوب، والمفتاح العام المؤقت للخادم إلى خادم التشخيص ([SWS_DM_01127]).

الإلغاء والتزامن:\nعبر cancellationHandler، يمكن للتطبيق استطلاع الحالة الحالية باستخدام IsCanceled أو تسجيل دالة إخطار لانقطاع الاتصال عبر SetNotifier ([SWS_DM_01127]). تم تعريف الواجهة بأنها noexcept ويجوز استدعاؤها بصورة قابلة لإعادة الدخول بالنسبة لطلبات العملاء المختلفين ([SWS_DM_01127]). ويتحدد ما إذا كان يجب أن يكون التنفيذ آمنًا لخيوط المعالجة عبر ConcurrencyType المُمرر في المنشئ ([SWS_DM_01127]).

معالجة الأخطاء والتكامل:\nفي حالة حدوث خطأ، يُرجع التطبيق رمز NRC مناسبًا وفقًا للمواصفة ISO 14229-1 عبر DiagUdsNrcErrc؛ وتتم معالجة قيم الإرجاع السلبية بشكل منفصل بواسطة خادم التشخيص ([SWS_DM_01127]، [SWS_DM_01236]). وضمن مصادقة UDS ([SWS_DM_01226])، يشكل تكوين هذه الدالة الفرعية شرطًا ضروريًا في حال تم تكوين DiagnosticProofOfOwnership ([SWS_DM_01227]، [SWS_DM_01228]).

ملاحظة: تم إنشاء هذه الإرشادات تلقائيًا استنادًا إلى مواصفة AUTOSAR AP R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
communicationConfigurationAs defined in ISO 14229-1:2020, this parameter provides information about how to proceed with security in further diagnostic communication after the Authentication.
clientCertificateThe certificate that is received from the tester during Bidirectional Authentication. Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
clientChallengeAs defined in ISO14229-1:2020, this parameter provides the challenge received from the tester during Bidirectional Authentication, Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
metaInfoMetaInfo of the request.
cancellationHandlerThis parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled.

Rückgabewert

TypBeschreibung
ara::core::Future<std::tuple<ara::core::Vector<ara::core::Vector<ara::core::Vector<ara::core::Vector<ara::core::Byte >, ara::core::Byte >, ara::core::Byte >, ara::core::Byte > > >Returns the challenge created by the application, Certificate of the server, ProofOfOwnership calculated by the server, Ephemeral Public Key of server.

Fehler

FehlercodeBeschreibung
Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01127@rel:R25-11#1a7cdb8f
Content hash
1a7cdb8f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01127
Status: valid/unmigrated Version: rel:R25-11#221a1952 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_01127@rel:R25-11#221a1952
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#1a83c6762026-09-30
  • R21-11rel:R21-11#709ba10b2026-10-14
  • R22-11rel:R22-11#f6afc01a2026-10-14
  • R23-11rel:R23-11#9b3be6d92026-10-14
  • R24-11rel:R24-11#53b61fdb2026-10-14
  • R25-11rel:R25-11#221a19522026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة VerifyCertificateUnidirectional [SWS_DM_01126] Upstream: RS_Diag_04251, RS_AP_00128

virtual ara::core::Future< std::tuple< ara::core::Vector< ara::core::Byte >, ara::core::Vector< ara::core::Byte > > > Verify CertificateUnidirectional (ara::core::Byte communicationConfiguration, ara::core::Span< const ara::core::Byte > clientCertificate, ara::core::Span< const ara::core::Byte > clientChallenge, const Meta Info &metaInfo, CancellationHandler cancellationHandler) noexcept=0;

This function accepts the certificate received from the tester, verifies it, and creates a challenge and ephemeral public key that must be returned to the tester. This callback may be called re-entrant to requests from different clients

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 880414da5993 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يتم استدعاء دالة الاستدعاء الراجع (Callback) VerifyCertificateUnidirectional للفئة ara::diag::Authentication بواسطة مثيل خادم التشخيص بمجرد استلام طلب لخدمة UDS ذات الرمز 0x29 بالدالة الفرعية verifyCertificateUnidirectional (0x01) واجتياز الفحص المسبق بنجاح (SWS Diagnostics §7.3.2.8.11.2 «Service 0x29 – verifyCertificateUnidirectional (0x01)»، [SWS_DM_01230]). وتُحقق المصادقة أحادية الاتجاه عبر تبادل شهادات PKI وفقًا للمواصفة ISO 14229-1 ([SWS_DM_01226]).

يتم تمرير تكوين الاتصال (communicationConfiguration)، وشهادة العميل (clientCertificate)، وتحدي العميل (clientChallenge) كمعاملات بالإضافة إلى معلومات التعريف وCancellationHandler ([SWS_DM_01126]). وتظل نطاقات Spans الممررة صالحة حتى يتم استيفاء ara::core::Future المُعاد أو إلغاء المعالجة عبر المعالج. وتُرجع الدالة بشكل غير متزامن صفًا (tuple) يتكون من تحدي الخادم المُنشأ والمفتاح العام المؤقت للخادم ([SWS_DM_01126]).

إذا حدث خطأ أثناء التحقق، يجب إنهاء Future برمز استجابة سلبية (NRC) مناسب عبر DiagUdsNrcErrc ([SWS_DM_01126]).

تم تحديد الدالة بأنها exception safe ويجوز استدعاؤها بصورة قابلة لإعادة الدخول (reentrant) لطلبات عملاء تشخيص مختلفين ([SWS_DM_01126]). وأمان خيوط المعالجة مشروط؛ حيث يحدد ConcurrencyType المحدد في المنشئ ما إذا كان يجب أن يكون التنفيذ آمنًا لخيوط المعالجة ([SWS_DM_01126]). وفي التدفق الكلي، يُعد تكوين هذا الفحص شرطًا إلزاميًا في حال تم تكوين الدالة الفرعية DiagnosticProofOfOwnership ([SWS_DM_01227]).

تم إنشاء ملاحظة الاستخدام هذه بصورة آلية استناداً إلى مواصفة AUTOSAR AP R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
communicationConfigurationAs defined in ISO14229-1:2020 [1], this parameter provides information about how to proceed with security in further diagnostic communication after the Authentication.
clientCertificateThe certificate that is received from the tester during Unidirectional Authentication. Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
clientChallengeAs defined in ISO14229-1:2020 [1], this parameter provides the challenge received fom the tester during Unidirectional Authentication. This parameter has a dependency on the CommunicationConfiguration used. Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
metaInfoMetaInfo of the request.
cancellationHandlerThis parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled.

Rückgabewert

TypBeschreibung
ara::core::Future<std::tuple<ara::core::Vector<ara::core::Vector<ara::core::Byte >, ara::core::Byte > > >Returns challenge created by the application, Ephemeral PublicKey of Server

Fehler

FehlercodeBeschreibung
Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01126@rel:R25-11#c44995fa
Content hash
c44995fa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01126
Status: valid/unmigrated Version: rel:R25-11#5b0bedab 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_01126@rel:R25-11#5b0bedab
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#891430be2026-09-30
  • R21-11rel:R21-11#6b67e2b92026-10-14
  • R22-11rel:R22-11#96d86c762026-10-14
  • R23-11rel:R23-11#6ec11ca22026-10-14
  • R24-11rel:R24-11#334a55a52026-10-14
  • R25-11rel:R25-11#5b0bedab2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة VerifyOwnership [SWS_DM_01128] Upstream: RS_Diag_04251, RS_AP_00128

virtual ara::core::Future< ara::core::Vector< ara::core::Byte > > VerifyOwnership (ara::core::Span< const ara::core::Byte > clientPOWN, ara::core::Span< const ara::core::Byte > clientEphemeralPublicKey, const MetaInfo &metaInfo, CancellationHandler cancellationHandler) noexcept=0;

This function accepts the Proof Of Ownership received from the tester and verifies it with the Public Key of the certificate received in the verifyCertificateUnidirectional / verifyCertificate Bidirectional against the server challenge created in the last call to verifyCertificateUnidirectional / verifyCertificateBidirectional.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 395c9e79b3c8 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام وسياق الاستدعاء

يستدعي Diagnostic Server الطريقة الافتراضية البحتة VerifyOwnership للفئة ara::diag::Authentication بمجرد تلقي طلب مصادقة لخدمة UDS ذات الرمز 0x29 مع الوظيفة الفرعية proofOfOwnership (0x03) واجتياز الفحوصات التحضيرية بنجاح [SWS_DM_01240]. وتتمثل مهمة التنفيذ في التحقق من إثبات الملكية (Proof of Ownership) المرسل من جهاز الفحص بالاعتماد على المفتاح العام المأخوذ من شهادة العميل المتبادلة مسبقًا مقابل التحدي المُنشأ من الخادم [SWS_DM_01128].

عند الاستدعاء، يمرر Diagnostic Server بيانات الإدخال التشفيرية ذات الصلة بالإضافة إلى كائنات السياق AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.3.5 «VerifyOwnership»:

  • clientPOWN: يحتوي على إثبات الملكية (Proof of Ownership) المقدم من جهاز الفحص التشخيصي ردًا على تحدي الخادم السابق.
  • clientEphemeralPublicKey: المفتاح العام المؤقت للعميل من أجل اتفاق مفاتيح ديفي-هيلمان وفقًا للمعيار ISO 14229-1:2020.
  • metaInfo: البيانات الوصفية لطلب التشخيص الحالي.
  • cancellationHandler: يتيح الاستعلام عن حدوث أي إلغاء محتمل (cancellationHandler.IsCanceled) بالإضافة إلى تسجيل دالة إشعار (cancellationHandler.SetNotifier).

تعمل الدالة بشكل غير متزامن وتُرجع ara::core::Future، والذي يوفر بدوره معلومات مفتاح الجلسة كمتجه بايتات في حالة النجاح [SWS_DM_01128].

معالجة الأخطاء

إذا تعذر إجراء التحقق من الملكية بنجاح، يحدد التطبيق قيمة إرجاع UDS سلبية مناسبة (NRC) وفقًا للمعيار ISO 14229-1 عبر DiagUdsNrcErrc في الـ Future المُرجع [SWS_DM_01128]. وإذا أرجعت الطريقة كود خطأ محددًا كهذا، يرسل Diagnostic Server استجابة سلبية (Negative Response) مع الـ NRC المطابق إلى العميل [SWS_DM_01241].

التزامن والشروط الحدية

تم تعريف الواجهة كـ noexcept. وفيما يتعلق بأمان مؤشرات الترابط (Thread Safety)، يُعتبر السلوك مشروطًا (conditional): حيث يتحدد ما إذا كان يجب تنفيذ الطريقة بأمان لمؤشرات الترابط عبر ConcurrencyType المحدد عند إنشاء المثيل [SWS_DM_01128]. بالنسبة للمخزنين المؤقتين clientPOWN وclientEphemeralPublicKey، فإنه يُضمن بقاء نطاق الذاكرة الخاص بهما صالحًا حتى يتم استيفاء الـ Promise أو إلغاء المعالجة عبر cancellationHandler [SWS_DM_01128].

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا بناءً على مواصفة AUTOSAR AP R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitconditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor

Parameter (in)

ParameterBeschreibung
clientPOWNThe Proof Of Ownership provided by the Tester to the previously exchanged Server Challenge, Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
clientEphemeralPublicKeyAs defined in ISO14229-1:2020, this is the Ephemeral public key generated by the client for Diffie-Hellman key agreement, Lifetime: Valid until Promise is fulfilled or the processing is cancelled by the cancellationHandler.
metaInfoMetaInfo of the request.
cancellationHandlerThis parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled.

Rückgabewert

TypBeschreibung
ara::core::Future<ara::core::Vector<ara::core::Byte > >Session Key Info or error

Fehler

FehlercodeBeschreibung
Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01128@rel:R25-11#2e12390b
Content hash
2e12390b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01128
Status: valid/unmigrated Version: rel:R25-11#d5b901ef 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_01128@rel:R25-11#d5b901ef
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#6c1fffad2026-09-30
  • R21-11rel:R21-11#c3b0498c2026-10-14
  • R22-11rel:R22-11#aabbb0bc2026-10-14
  • R23-11rel:R23-11#57ff671b2026-10-14
  • R24-11rel:R24-11#4d4d184a2026-10-14
  • R25-11rel:R25-11#d5b901ef2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_DM_01607] Upstream: RS_AP_00147

Authentication & operator= (Authentication &)=delete;

Authentication shall be a single not assignable instance.

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01607
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01607@rel:R25-11#94dd41b1
Content hash
94dd41b1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01607
Status: valid/unmigrated Version: rel:R25-11#e43ad077 Versionshistorie & Revisions (1 transition, 4 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_01607@rel:R25-11#e43ad077
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#bbae82102026-09-30
  • R23-11rel:R23-11#a480b8c62026-10-14
  • R24-11rel:R24-11#e43ad0772026-10-14
  • R25-11rel:R25-11#e43ad0772026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة operator= [SWS_DM_01608] Upstream: RS_AP_00147

Authentication & operator= (Authentication &&)=delete;

Move assignment operator of Authentication.

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01608
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01608@rel:R25-11#6b85ff03
Content hash
6b85ff03
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01608
Status: valid/unmigrated Version: rel:R25-11#7761b325 Versionshistorie & Revisions (1 transition, 4 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_01608@rel:R25-11#7761b325
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#58f113cc2026-09-30
  • R23-11rel:R23-11#5ce3d7fa2026-10-14
  • R24-11rel:R24-11#7761b3252026-10-14
  • R25-11rel:R25-11#7761b3252026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة ~Authentication [SWS_DM_01125] Upstream: RS_Diag_04251

virtual ~Authentication () noexcept;

Destructor of Authentication.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: d82e30be663a المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يختتم المُدمر الافتراضي ~Authentication() دورة حياة مثيل للفئة ara::diag::Authentication ويحرر موارده [SWS_DM_01125]. تم التصريح عن الدالة في ملف الرأس #include "ara/diag/authentication.h" للوحدة النمطية Diagnostics AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.1.3 «Destructor».

لا تستقبل الدالة أي معاملات، ولا تقدم أي قيمة إرجاع، ويتم استدعاؤها بشكل متزامن عند تفكيك الكائن [SWS_DM_01125]. وبفضل التوصيف كـ virtual، يُضمن تنظيف موارد الفئات المشتقة بشكل صحيح أيضًا عند الحذف متعدد الأشكال عبر مؤشرات أو مراجع إلى الفئات الأساسية.

فيما يتعلق بمعالجة الأخطاء، تم تحديد الدالة بأنها exception safe وتحمل المُحدد noexcept [SWS_DM_01125]. ولا يتم إرجاع أي رموز خطأ أو حالة، ويُضمن عدم ظهور أي استثناءات C++ إلى الخارج.

فيما يتعلق بالتزامن، تم تصنيف ~Authentication() بأنه not thread-safe [SWS_DM_01125]. ولذلك، يجب ألا يحدث التدمير على الإطلاق بالتزامن مع استدعاءات دوال أخرى لنفس المثيل. تفسير: يُرجح أن يكون التطبيق المستخدِم ملزمًا بإكمال جميع عمليات المصادقة أو التشخيص الجارية قبل التدمير وتأمين الاستدعاء خارجيًا ضد عمليات الوصول المتوازية. سؤال Q-41b1c115c1056759 (مفتوح) يُنفذ المُدمر المتطلب الأعلى RS_Diag_04251 AUTOSAR_AP_SWS_Diagnostics §8.3.1.1.1.3 «Destructor».

تم إنشاء هذا النص بواسطة نظام ذكاء اصطناعي وخضع للمراجعة التحريرية.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/authentication.h"
Scopeclass ara::diag::Authentication
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01125@rel:R25-11#5076fd6c
Content hash
5076fd6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01125
Status: valid/unmigrated Version: rel:R25-11#4da26eb6 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_01125@rel:R25-11#4da26eb6
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#f87a1af62026-09-30
  • R21-11rel:R21-11#340e99022026-10-14
  • R22-11rel:R22-11#f53657532026-10-14
  • R23-11rel:R23-11#b44955282026-10-14
  • R24-11rel:R24-11#fbd031862026-10-14
  • R25-11rel:R25-11#4da26eb62026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill