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 между 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]). Поскольку обратные вызовы верификации могут вызываться реэнтерабельно для различных клиентов ([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 кортеж, состоящий из серверного запроса подтверждения (challenge) и эфемерного открытого ключа сервера.
    • При двунаправленной аутентификации 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 с Server-Challenge и 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 Negative Response Code (NRC) согласно ISO 14229-1 через DiagUdsNrcErrc ([SWS_DM_01126], [SWS_DM_01127], [SWS_DM_01128]).
  • Разрыв соединения: при прерывании текущего диагностического диалога DM сигнализирует об этом через объект CancellationHandler ([SWS_DM_01126]). Приложение может запросить статус с помощью cancellationHandler.IsCanceled() или зарегистрировать функцию обратного вызова через SetNotifier. Переданные span-объекты данных остаются действительными только до тех пор, пока 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
~Authentication функция

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;
VerifyOwnership функция

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 (Authentication с 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#e0c3fbc2
Content hash
e0c3fbc2
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#753a324e
Content hash
753a324e
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#0c8a2506
Content hash
0c8a2506
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]). Если регистрация завершается сбоем из-за того, что сервис для этого экземпляра уже был предоставлен ранее, в объекте Result возвращается специфический код ошибки DiagOfferErrc::kAlreadyOffered ([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#808d2996
Content hash
808d2996
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#83dc3857
Content hash
83dc3857
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 · Немецкий оригинал

Чисто виртуальный метод обратного вызова VerifyCertificateBidirectional интерфейса ara::diag::Authentication ([SWS_DM_01127]) вызывается Diagnostic Server, как только поступает диагностический запрос для UDS-службы 0x29 (Authentication) с подфункцией 0x02 (verifyCertificateBidirectional) и успешно пройдены начальные проверки ([SWS_DM_01235], AUTOSAR_AP_SWS_Diagnostics §7.3.2.8.11.3 «Service 0x29 – verifyCertificateBidirectional (0x02)»).

Использование и семантика:\nсервер передает конфигурацию связи, а также полученные от тестера данные сертификата и запроса Challenge через communicationConfiguration, clientCertificate и clientChallenge вместе с metaInfo и cancellationHandler ([SWS_DM_01127], [SWS_DM_01235]). Буферы входных диапазонов span остаются действительными до тех пор, пока возвращенный ara::core::Future не будет выполнен через соответствующий Promise или операция не будет отменена ([SWS_DM_01127]). Асинхронно метод возвращает серверу Diagnostic Server кортеж из 4 элементов, состоящий из Server Challenge, сертификата сервера, вычисленного Proof-of-Ownership и эфемерного открытого ключа сервера ([SWS_DM_01127]).

Отмена и параллелизм:\nчерез cancellationHandler приложение может опрашивать текущий статус с помощью IsCanceled или через SetNotifier зарегистрировать функцию уведомления для разрыва соединения ([SWS_DM_01127]). Интерфейс определен как noexcept и может вызываться реентерабельно в отношении запросов различных клиентов ([SWS_DM_01127]). Должна ли реализация быть потокобезопасной, определяется переданным в конструкторе ConcurrencyType ([SWS_DM_01127]).

Обработка ошибок и взаимодействие:\nв случае ошибки приложение возвращает подходящий NRC в соответствии с ISO 14229-1 через DiagUdsNrcErrc; отрицательные возвращаемые значения обрабатываются сервером Diagnostic Server отдельно ([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#0f53dfae
Content hash
0f53dfae
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 · Немецкий оригинал

Метод обратного вызова VerifyCertificateUnidirectional класса ara::diag::Authentication вызывается экземпляром Diagnostic Server, как только запрос для службы 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) и запрос Client Challenge (clientChallenge), а также метаинформация и CancellationHandler ([SWS_DM_01126]). Переданные диапазоны span остаются действительными до тех пор, пока возвращенный ara::core::Future не будет выполнен или обработка не будет отменена через обработчик. Метод асинхронно возвращает кортеж, состоящий из сгенерированного Server Challenge и эфемерного открытого ключа сервера ([SWS_DM_01126]).

Если при валидации возникает ошибка, Future необходимо завершить с подходящим отрицательным кодом ответа (NRC) через DiagUdsNrcErrc ([SWS_DM_01126]).

Функция специфицирована как exception safe и может вызываться реентерабельно для запросов различных диагностических клиентов ([SWS_DM_01126]). Потокобезопасность является условной; должна ли реализация быть thread-safe, определяет заданный в конструкторе 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#c459a8cc
Content hash
c459a8cc
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 · Немецкий оригинал

Использование и контекст вызова

Чисто виртуальный метод VerifyOwnership класса ara::diag::Authentication вызывается Diagnostic Server, как только получен запрос на аутентификацию службы UDS 0x29 с подфункцией proofOfOwnership (0x03) и подготовительные проверки прошли успешно [SWS_DM_01240]. Задача реализации заключается в том, чтобы верифицировать переданное тестером подтверждение владения (Proof of Ownership) относительно сгенерированного сервером оклика (Server-Challenge) на основе открытого ключа из ранее полученного сертификата клиента [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. В отношении потокобезопасности поведение считается условным (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#e622bba2
Content hash
e622bba2
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#96a28ed0
Content hash
96a28ed0
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#619a1f82
Content hash
619a1f82
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#35361afe
Content hash
35361afe
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