DEENESPTFRRUARHIKOZHNL

类 ara::diag::ExternalAuthentication

[SWS_DM_01191] Upstream: RS_Diag_04251

class ExternalAuthentication final {...};

Definition of the ExternalAuthentication class, which is used by the application to receive an instance of the ClientAuthentication Class relevant to the specific client.

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

用户指南人工智能生成

用于检索认证实例以管理外部诊断客户端的状态。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 95763dbebaf8 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用于检索认证实例以管理外部诊断客户端的状态。

类 ara::diag::ExternalAuthentication 提供了一个端口接口,Adaptive 应用程序通过该接口查询 ara::diag::ClientAuthentication 的实例以管理外部诊断客户端的认证状态 [SWS_DM_01191]。绑定到建模的服务端口后,根据源地址或元信息从 Diagnostic Manager 定向请求认证对象 [SWS_DM_01200]。该实例具有移动语义,禁止拷贝操作,并且由于析构函数非线程安全而需要同步销毁。

上下文

类 ara::diag::ExternalAuthentication 在 AUTOSAR Adaptive Platform 中充当用于外部诊断客户端认证的端口接口 [SWS_DM_01191]、AUTOSAR_AP_SWS_Diagnostics §8.17 “Header: ara/diag/external_authentication.h”。通过此端口,Adaptive 应用程序可以访问 ara::diag::ClientAuthentication 的特定实例,这些实例映射并管理对应诊断客户端的认证状态 [SWS_DM_01202]。

可用客户端实例的分配和数量在软件模型中通过元素 DiagnosticExternalAuthenticationIdentification 定义。如果最终源地址直到运行时才可知,该元素允许应用程序为诊断测试仪指定固定的源地址或类型为 Address(std::uint16_t [SWS_DM_01192] 的别名)的配置地址范围 AUTOSAR_AP_SWS_Diagnostics §7.3.2.2 “Get ClientAuthentication Instance”。

参与的交互方包括:

  • Adaptive 应用程序:创建端口实例并查询认证状态。
  • Diagnostic Manager (DM):控制诊断连接并管理客户端的认证状态 [SWS_DM_01202]。
  • ara::diag::ClientAuthentication 对象:分配给发起请求的客户端。
  • 外部诊断客户端:其连接通过源地址或元信息进行标识。
diag_kontext app Adaptive Applikation ext_auth ara::diag::ExternalAuthentication app->ext_auth instanziiert / ruft Get dm Diagnostic Manager ext_auth->dm fragt Zustand an client_auth ara::diag::ClientAuthentication ext_auth->client_auth 提供实例 dm->client_auth verwaltet client Externer Diagnose-Client client->dm Diagnoseanfrage

上下文图:端口类在应用程序、Diagnostic Manager 和客户端认证之间的集成。来源:[SWS_DM_01191]、[SWS_DM_01202]、AUTOSAR_AP_SWS_Diagnostics §7.3.2.2 “Get ClientAuthentication Instance”。

生命周期

ara::diag::ExternalAuthentication 实例的创建通过向构造函数 [SWS_DM_01193] 显式传入 ara::core::InstanceSpecifier 来进行。该标识符将对象绑定到 DiagnosticExternalAuthenticationInterface 的建模 PortPrototype。

关于所有权关系,该类具有纯移动语义:提供移动构造函数 [SWS_DM_01194] 和移动赋值运算符 [SWS_DM_01195](default),而拷贝构造函数 [SWS_DM_01196] 和拷贝赋值运算符 [SWS_DM_01197] 已被删除(delete)。因此,端口表示一个不可分割、不可拷贝的接口对象。

对于销毁,析构函数 ~ExternalAuthentication() 可用 [SWS_DM_01198]。关于并发性,构造函数以及查询方法被指定为线程安全(thread-safe)和异常安全(exception safe)[SWS_DM_01193]、[SWS_DM_01199]、[SWS_DM_01200]、[SWS_DM_01201]。相反,析构函数明确为非线程安全(not thread-safe)[SWS_DM_01198]。因此,应用程序必须确保在销毁对象之前不再发生并发调用。

使用路径

典型流程包括端口的初始化以及随后对认证对象的检索:

  1. 应用程序在指定实例标识符 [SWS_DM_01193] 的情况下实例化 ExternalAuthentication。
  2. 应用程序请求具体客户端的认证实例。为此,可使用重载方法 Get(Address)(利用测试仪地址 [SWS_DM_01200])或 Get(const MetaInfo&)(根据接收到的请求元数据 [SWS_DM_01199])。或者,它可以通过 GetAll() 查询 Diagnostic Manager 当前维护的所有实例的列表 [SWS_DM_01201]。
  3. Diagnostic Manager 确定相应对象并返回 ara::core::Result<ClientAuthentication> 或向量 [SWS_DM_01202]。
  4. 应用程序检查结果,随后与获得的 ClientAuthentication 实例交互,该实例推测用作应用端认证会话状态的句柄。 问题 Q-e7ddbab981bf21de (未决)
获取 ClientAuthentication 实例ApplikationExternalAuthenticationDiagnosticManagerExternalAuthentication(instanceSpecifier)Get(sourceAddress)Authentifizierungszustand anfordernClientAuthentication-Instanzara::core::Result<ClientAuthentication>

时序图:用于实例化和查询 ClientAuthentication 实例的典型调用顺序。来源:[SWS_DM_01193]、[SWS_DM_01200]、[SWS_DM_01202]。

错误场景

通过构造函数实例化时,配置和建模错误可能导致已定义的违规 [SWS_DM_01193]:

  • InstanceSpecifierMappingIntegrityViolation:该标识符无法在可执行文件的上下文中解析,或未引用 PortPrototype。
  • PortInterfaceMappingViolation:引用的 PortPrototype 未被类型化为 DiagnosticExternalAuthenticationInterface。
  • ProcessMappingViolation:不存在适用于运行时进程的匹配建模进程定义。
  • InstanceSpecifierAlreadyInUseViolation:该标识符在同一进程中已被另一个端口实例使用。

在调用 Get(const MetaInfo&) 或 Get(Address) 时,通过 ara::core::Result 的返回值可能包含错误代码 DiagErrc::kServiceNotAvailable [SWS_DM_01199]、[SWS_DM_01200]。这表示 Diagnostic Manager 的关键功能暂时不可用。调用 GetAll() 在缺少实例时不返回错误代码,而是返回一个空向量 [SWS_DM_01201]。

本文由 AI 系统基于 AUTOSAR R25-11 规范生成。

成员图

方法

2

运算符

1

类型别名

1

类图

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

G nara__diag__ExternalAuthentication264 ExternalAuthentication + ExternalAuthentication() + ~ExternalAuthentication() + Get() + GetAll() + operator=()

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

Constructs the port for authentication of diagnostic clients.

重载 ExternalAuthentication 3
explicit ExternalAuthentication (ara::core::InstanceSpecifier instance Specifier) noexcept; SWS_DM_01193
ExternalAuthentication (ExternalAuthentication &&other) noexcept=default; SWS_DM_01194
ExternalAuthentication (ExternalAuthentication const &other)=delete; SWS_DM_01196

Destructor of DiagnosticServiceDynamicAccessList.

方法

Get 函数 2

This function is used by the application to get the ClientAuthentication Instance that is handling the Authentication State of the Client corresponding to the MetaInfo.

重载 Get 2
GetAll 函数

This function is used by the application to get all the ClientAuthentication Instances that are currently handled by the DM.

运算符

operator= 函数 2

Move assignment operator of ExternalAuthentication.

重载 = 2
auto operator= (ExternalAuthentication &&other) & noexcept -> External Authentication & =default; SWS_DM_01195
auto operator= (ExternalAuthentication const &other) -> External Authentication &=delete; SWS_DM_01197

类型别名

Address 类型别名

Alias for tester address.

using Address = std::uint16_t;

方法文档

函数 ExternalAuthentication [SWS_DM_01193] Upstream: RS_Diag_04251, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

explicit ExternalAuthentication (ara::core::InstanceSpecifier instance Specifier) noexcept;

Constructs the port for authentication of diagnostic clients.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 26d2f2a81fd4 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

显式构造函数 [SWS_DM_01193] 初始化端口类 ara::diag::ExternalAuthentication [SWS_DM_01191] 的实例,用于对外部诊断客户端进行身份验证 (SWS Diagnostics §8.17 “Header: ara/diag/external_authentication.h”)。该函数需要一个 ara::core::InstanceSpecifier 作为参数,该参数必须引用在 Manifest 中建模的 DiagnosticExternalAuthenticationInterface 服务实例的 PortPrototype [SWS_DM_01193]。

该同步调用被声明为 noexcept,并被指定为 thread-safe 以及 exception-safe [SWS_DM_01193]。由于不抛出异常,建模和配置错误将导致框架定义的 Violations [SWS_DM_01193]:

  • InstanceSpecifierMappingIntegrityViolation:该标识符在 Executable 上下文中无法解析,或引用了除 PortPrototype 之外的其他模型元素。
  • PortInterfaceMappingViolation:所引用的 PortPrototype 未由 DiagnosticExternalAuthenticationInterface 进行类型化。
  • ProcessMappingViolation:该引用不存在匹配的建模运行时进程。
  • InstanceSpecifierAlreadyInUseViolation:该标识符在运行中的进程中已被另一个实例使用。

对于 ExternalAuthentication,复制操作被明确禁止 [SWS_DM_01196] [SWS_DM_01197],而移动操作受支持 [SWS_DM_01194] [SWS_DM_01195]。与构造函数相反,相应的析构函数不是线程安全的 [SWS_DM_01198]。成功实例化后,该对象用于通过 Get 或 GetAll 等方法查询关联的客户端身份验证实例 [SWS_DM_01201] [SWS_DM_01202]。

本使用说明是基于 AUTOSAR 规范自动生成的。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
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 DiagnosticExternalAuthenticationPortMapping needs to be typed by a DiagnosticExternalAuthenticationInterface. 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
instanceSpecifierInstanceSpecifier to a PortPrototype of a DiagnosticExternalAuthenticationInterface service instance in the manifest.

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

Record
AUTOSAR/AP/record/SWS_DM_01193
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01193@rel:R25-11#c5f9cdef
Content hash
c5f9cdef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01193
Status: valid/unmigrated Version: rel:R25-11#99c49ac2 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_01193@rel:R25-11#99c49ac2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#3d7cf4e12026-09-30
  • R21-11rel:R21-11#8a71f7dd2026-10-14
  • R22-11rel:R22-11#62844c072026-10-14
  • R23-11rel:R23-11#447ba5db2026-10-14
  • R24-11rel:R24-11#4fb764692026-10-14
  • R25-11rel:R25-11#99c49ac22026-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

函数 ExternalAuthentication [SWS_DM_01194] Upstream: RS_Diag_04251

ExternalAuthentication (ExternalAuthentication &&other) noexcept=default;

Move constructor of ExternalAuthentication.

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherObject to move-construct from

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

Record
AUTOSAR/AP/record/SWS_DM_01194
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01194@rel:R25-11#c92f0278
Content hash
c92f0278
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01194
Status: valid/unmigrated Version: rel:R25-11#56b10148 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_01194@rel:R25-11#56b10148
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#49f971fe2026-09-30
  • R21-11rel:R21-11#5c8f6e4f2026-10-14
  • R22-11rel:R22-11#05f8bd8b2026-10-14
  • R23-11rel:R23-11#503551b52026-10-14
  • R24-11rel:R24-11#de5240aa2026-10-14
  • R25-11rel:R25-11#56b101482026-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

函数 ExternalAuthentication [SWS_DM_01196] Upstream: RS_Diag_04251

ExternalAuthentication (ExternalAuthentication const &other)=delete;

Copy constructor of ExternalAuthentication.

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication

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

Record
AUTOSAR/AP/record/SWS_DM_01196
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01196@rel:R25-11#636b828f
Content hash
636b828f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01196
Status: valid/unmigrated Version: rel:R25-11#28bce7b2 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_01196@rel:R25-11#28bce7b2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#792beea12026-09-30
  • R21-11rel:R21-11#5ed5ded02026-10-14
  • R22-11rel:R22-11#ef33b0632026-10-14
  • R23-11rel:R23-11#861f734f2026-10-14
  • R24-11rel:R24-11#28bce7b22026-10-14
  • R25-11rel:R25-11#28bce7b22026-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

函数 Get [SWS_DM_01199] Upstream: RS_Diag_04251

ara::core::Result< ClientAuthentication > Get (const MetaInfo &meta Info) noexcept;

This function is used by the application to get the ClientAuthentication Instance that is handling the Authentication State of the Client corresponding to the MetaInfo.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b80711a7d088 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

同步方法 ara::diag::ExternalAuthentication::Get 用于让自适应应用程序检索负责诊断请求的 ara::diag::ClientAuthentication 实例 [SWS_DM_01199]。作为参数传递对 metaInfo(const ara::diag::MetaInfo&)的引用,该引用提供诊断请求上下文中的元信息 SWS Diagnostics §7.3.1.1 “MetaInfo class”。类型为 ara::core::Result<ClientAuthentication> 的返回值封装了相应的身份验证对象,用于管理客户端的身份验证状态 [SWS_DM_01202]。

如果发生错误,返回的 Result 包含特定错误码 DiagErrc::kServiceNotAvailable [SWS_DM_01199]。该错误码以回滚语义指示无法执行调用,因为 Diagnostic Manager(DM)的基本功能在调用时不可用 [SWS_DM_01199]。

关于并发性,该函数被指定为线程安全以及异常安全,并声明为 noexcept [SWS_DM_01199]。因此,可以安全地从并行线程中调用它,而无需应用程序端锁定机制。

该方法与重载变体 Get(Address sourceAddress) [SWS_DM_01200] 协同工作,后者允许直接通过客户端的源地址进行相同的检索 [SWS_DM_01202]。可用实例的数量由模型元素 DiagnosticExternalAuthenticationIdentification 决定 SWS Diagnostics “Get ClientAuthentication Instance”。解释:该函数推测在内部从 metaInfo 中封装的传输数据中确定分配所需的源地址。 问题 Q-50d416201ccb5825 (未决)

此使用说明是基于 AUTOSAR 规范版本 R25-11 自动生成的。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
metaInfoMetaInfo of the request.

Rückgabewert

TypBeschreibung
ara::core::Result< ClientAuthentication >Returns the diagnostic client associated authentication object or error.

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01199
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01199@rel:R25-11#e8cedcf9
Content hash
e8cedcf9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01199
Status: valid/unmigrated Version: rel:R25-11#0d7aa83d 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_01199@rel:R25-11#0d7aa83d
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#d297578c2026-09-30
  • R21-11rel:R21-11#174411bd2026-10-14
  • R22-11rel:R22-11#5765361f2026-10-14
  • R23-11rel:R23-11#5356d12b2026-10-14
  • R24-11rel:R24-11#1ee0d9c92026-10-14
  • R25-11rel:R25-11#0d7aa83d2026-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

函数 Get [SWS_DM_01200] Upstream: RS_Diag_04251

ara::core::Result< ClientAuthentication > Get (Address sourceAddress) noexcept;

This function is used by the application to get the ClientAuthentication Instance that is handling the Authentication State of the Client corresponding to the Address.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: be5ba5af6394 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::diag::ExternalAuthentication 的同步方法 Get 用于让自适应应用程序检索 ClientAuthentication 的实例,该实例管理指定源地址的诊断客户端的身份验证状态 [SWS_DM_01200]。Diagnostic Manager 在此通过传入的源地址解析负责的身份验证对象 [SWS_DM_01202]。

使用和边界条件包括以下方面:

  • 调用与参数:作为参数传递类型为 Address 的 sourceAddress [SWS_DM_01200]。在系统模型中,解析基于已配置的 DiagnosticExternalAuthenticationIdentification 元素,这些元素定义了固定的源地址或地址范围 SWS Diagnostics 第129页 “ClientAuthentication”。此外,还存在 Get 的重载,其通过 MetaInfo 对象确定实例 [SWS_DM_01199], [SWS_DM_01202]。
  • 返回值和错误处理:该函数返回一个 ara::core::Result<ClientAuthentication> [SWS_DM_01200]。如果由于 Diagnostic Manager 的基本功能不可用而无法执行,则以回滚语义返回错误 DiagErrc::kServiceNotAvailable [SWS_DM_01200]。
  • 并发性:该操作被指定为 thread-safe 和 exception safe,并声明为 noexcept,因此可以异常安全地从并行线程执行调用 [SWS_DM_01200]。

本使用说明基于 AUTOSAR Adaptive R25-11 的规范文档自动生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
sourceAddressThe source address of the client

Rückgabewert

TypBeschreibung
ara::core::Result< ClientAuthentication >Returns the associated diagnostic client authentication object or error.

Fehler

FehlercodeBeschreibung
DiagErrc::kServiceNotAvailablerollback_semantics The call cannot be executed, because essential DM functionality is currently not available.

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

Record
AUTOSAR/AP/record/SWS_DM_01200
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01200@rel:R25-11#63718e42
Content hash
63718e42
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01200
Status: valid/unmigrated Version: rel:R25-11#07135c96 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_01200@rel:R25-11#07135c96
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#a78dc7ce2026-09-30
  • R21-11rel:R21-11#f69dcd252026-10-14
  • R22-11rel:R22-11#98dbac742026-10-14
  • R23-11rel:R23-11#7078e40c2026-10-14
  • R24-11rel:R24-11#85f369cf2026-10-14
  • R25-11rel:R25-11#07135c962026-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

函数 GetAll [SWS_DM_01201] Upstream: RS_Diag_04251

ara::core::Vector< ClientAuthentication > GetAll () noexcept;

This function is used by the application to get all the ClientAuthentication Instances that are currently handled by the DM.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: a4dc37b394ab 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::diag::ExternalAuthentication 的方法 GetAll(头文件 ara/diag/external_authentication.h)用于让应用程序同步查询当前由 Diagnostic Manager 管理的所有 ClientAuthentication 实例 [SWS_DM_01201], [SWS_DM_01203]。该调用为无参调用,并返回一个 ara::core::Vector<ClientAuthentication>,其中包含所有关联的身份验证对象 [SWS_DM_01201]。

错误处理与返回值

该函数声明为异常安全(exception safe)且 noexcept [SWS_DM_01201]。该接口不存在特定的错误码或向 DET 或 DEM 发送的消息。如果没有可用的身份验证对象,这不会被视为错误,而是该方法返回一个空向量 [SWS_DM_01201]。

并发性与限制

规范指出 GetAll 是线程安全(thread-safe)的 [SWS_DM_01201]。解释:因此,推测允许从多个并行应用程序线程进行调用,而无需额外的应用程序端同步。 问题 Q-9f26d94068ebd3fe (未决)

相互作用

可检索的实例数量与类型为 DiagnosticExternalAuthenticationIdentification 的已配置模型元素相对应,这些元素定义了固定的源地址或地址范围 AUTOSAR_AP_SWS_Diagnostics 第129页。虽然 GetAll 提供所有实例的集合 [SWS_DM_01203],但方法 Get 允许针对特定源地址或元信息进行针对性查询 [SWS_DM_01202]。

此使用说明基于AUTOSAR规范自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Vector< ClientAuthentication >Returns the list of all diagnostic client associated authentication objects or empty list if none available.

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

Record
AUTOSAR/AP/record/SWS_DM_01201
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01201@rel:R25-11#caa8cb47
Content hash
caa8cb47
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01201
Status: valid/unmigrated Version: rel:R25-11#2912f80f 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_01201@rel:R25-11#2912f80f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#9941b3c92026-09-30
  • R21-11rel:R21-11#e12087182026-10-14
  • R22-11rel:R22-11#e977abb02026-10-14
  • R23-11rel:R23-11#6f409f582026-10-14
  • R24-11rel:R24-11#32e7f4b12026-10-14
  • R25-11rel:R25-11#2912f80f2026-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_01195] Upstream: RS_Diag_04251

auto operator= (ExternalAuthentication &&other) & noexcept -> External Authentication & =default;

Move assignment operator of ExternalAuthentication.

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

Rückgabewert

TypBeschreibung
ExternalAuthenticationExternalAuthentication& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01195
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01195@rel:R25-11#4dd8191c
Content hash
4dd8191c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01195
Status: valid/unmigrated Version: rel:R25-11#6803e422 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_01195@rel:R25-11#6803e422
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#8f6e23102026-09-30
  • R21-11rel:R21-11#e0a59cdb2026-10-14
  • R22-11rel:R22-11#2ba590ba2026-10-14
  • R23-11rel:R23-11#d39a0d602026-10-14
  • R24-11rel:R24-11#542712952026-10-14
  • R25-11rel:R25-11#6803e4222026-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_01197] Upstream: RS_Diag_04251

auto operator= (ExternalAuthentication const &other) -> External Authentication &=delete;

Copy assignment operator of ExternalAuthentication.

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication

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

Record
AUTOSAR/AP/record/SWS_DM_01197
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01197@rel:R25-11#444a5ba5
Content hash
444a5ba5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01197
Status: valid/unmigrated Version: rel:R25-11#09d1b83a 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_01197@rel:R25-11#09d1b83a
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#6d1027ba2026-09-30
  • R21-11rel:R21-11#9521bdc82026-10-14
  • R22-11rel:R22-11#f4eeab222026-10-14
  • R23-11rel:R23-11#3efeb14e2026-10-14
  • R24-11rel:R24-11#09d1b83a2026-10-14
  • R25-11rel:R25-11#09d1b83a2026-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

函数 ~ExternalAuthentication [SWS_DM_01198] Upstream: RS_Diag_04251

~ExternalAuthentication () noexcept;

Destructor of DiagnosticServiceDynamicAccessList.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: cea37c94582e 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

析构函数 ~ExternalAuthentication() 终止来自头文件 ara/diag/external_authentication.h 的类 ara::diag::ExternalAuthentication 实例的生命周期 [SWS_DM_01198]。它在离开作用域或释放对象时同步执行,不需要传入参数,也没有返回值 AUTOSAR_AP_SWS_Diagnostics §8.17.1.2.1.2 “Destructor”。

关于错误处理,该函数带有说明符 noexcept,并在形式上定义为异常安全(exception safe)[SWS_DM_01198]。因此,该调用保证在发生错误时不会有 C++ 异常中断销毁过程或传递给调用方。

关于并发性和限制,需要注意的是,该析构函数被指定为非线程安全(not thread-safe)[SWS_DM_01198]。因此,调用组件必须确保在销毁期间不会通过独立的线程对 ara::diag::ExternalAuthentication 的同一实例发生并发访问。推测在调用之前应完全终止该实例的所有活动诊断和身份验证操作,以避免不协调的内存访问。 问题 Q-67c112ea87f722d2 (未决)

在功能上下文中,该接口实现了针对诊断管理(DM)的更高级别需求 RS_Diag_04251 AUTOSAR_AP_SWS_Diagnostics §8.17.1.2.1.2 “Destructor”。将表格标记为 Dynamic-Access-List 的析构函数推测是规范的编辑模糊性,因为作用域和命名空间决定了对 ExternalAuthentication 的绑定 [SWS_DM_01198]。 问题 Q-30744aac322624cb (未决)

本使用说明基于 AUTOSAR 规范自动创建。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
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_01198
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01198@rel:R25-11#77ab1680
Content hash
77ab1680
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01198
Status: valid/unmigrated Version: rel:R25-11#fb78e709 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_01198@rel:R25-11#fb78e709
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#2976e59f2026-09-30
  • R21-11rel:R21-11#0b0d79932026-10-14
  • R22-11rel:R22-11#c93ef83d2026-10-14
  • R23-11rel:R23-11#95e746bb2026-10-14
  • R24-11rel:R24-11#8f8b55132026-10-14
  • R25-11rel:R25-11#fb78e7092026-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

类型别名文档

类型别名 Address [SWS_DM_01192] Upstream: RS_Diag_04251

using Address = std::uint16_t;

Alias for tester address.

Header-Datei#include "ara/diag/external_authentication.h"
Scopeclass ara::diag::ExternalAuthentication
SymbolAddress

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

Record
AUTOSAR/AP/record/SWS_DM_01192
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01192@rel:R25-11#d4ca6eef
Content hash
d4ca6eef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01192
Status: valid/unmigrated Version: rel:R25-11#14b59998 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_01192@rel:R25-11#14b59998
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#4c1ad19b2026-09-30
  • R21-11rel:R21-11#5e4deeca2026-10-14
  • R22-11rel:R22-11#b896dce62026-10-14
  • R23-11rel:R23-11#14b599982026-10-14
  • R24-11rel:R24-11#5bcc7f9a2026-10-14
  • R25-11rel:R25-11#14b599982026-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