DEENESPTFRRUARHIKOZHNL

klasse ara::diag::ClientAuthenticationHandle

[SWS_DM_01145] Upstream: RS_Diag_04251

class ClientAuthenticationHandle final {...};

Definition of the ClientAuthenticationHandle which is returned to the application when an AuthenticationState is set by the application.

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

User GuideAI-GEGENEREERD

Beheert dynamische diagnoserechten, sessietimers en de intrekking van de authenticatie van een diagnoseclient.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: ceee534cb2db Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Beheert dynamische diagnoserechten, sessietimers en de intrekking van de authenticatie van een diagnoseclient.

De klasse ara::diag::ClientAuthenticationHandle dient voor de applicatie om een actieve authenticatiesessie van een diagnoseclient te beheren [SWS_DM_01206]. Via deze handle configureert de applicatie dynamische toegangslijsten en vernieuwt deze de inactiviteitstimers van de client [SWS_DM_01213]. Het object volgt een strikte move-semantiek zonder kopieermogelijkheid en meldt fouten bij niet-beschikbaar diagnosebeheer via DiagErrc::kServiceNotAvailable. Door Revoke aan te roepen kunnen toegekende rollen en aanvullende rechten op elk moment gecontroleerd worden ingetrokken.

Context

De API-klasse ara::diag::ClientAuthenticationHandle is gedefinieerd in het headerbestand ara/diag/client_authentication_handle.h [SWS_DM_01145]. Deze fungeert als centraal besturingsobject dat aan een diagnose-applicatie ter beschikking wordt gesteld door de instantie van de Diagnostic Server, zodra een client succesvol is geauthenticeerd of diens standaardrollen tijdelijk zijn overschreven AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”.

Bij het opstarten van het systeem bevindt een client zich standaard in de toestand kDeAuthenticated [SWS_DM_01205] met vooraf geconfigureerde standaardrollen [SWS_DM_01204]. Roept de applicatie ara::diag::ClientAuthentication::Authenticate aan, dan brengt de Diagnostic Server de client naar de toestand kAuthenticated en levert deze een ara::diag::ClientAuthenticationHandle terug [SWS_DM_01206]. Evenzo wordt bij het aanroepen van ara::diag::ClientAuthentication::OverrideDefaultRoles voor het tijdelijk aanpassen van de rollen een dergelijke handle gegenereerd [SWS_DM_01209]. Via de handle bestuurt de applicatie de authenticatiestatus en de dynamische toegangslijst (DynamicAccessList), die een geauthenticeerde client aanvullende toegangsrechten verleent op diagnoseresources buiten het diagnose-extract AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”.

diag_auth_context Anwendung Anwendung ClientAuthenticationHandle ClientAuthenticationHandle Anwendung->ClientAuthenticationHandle steuert Zugriff DiagnosticServer DiagnosticServer ClientAuthenticationHandle->DiagnosticServer aktualisiert Sitzung DiagnoseClient DiagnoseClient DiagnoseClient->DiagnosticServer sendet UDS-Anfragen

Contextdiagram: samenspel van applicatie, ClientAuthenticationHandle en Diagnostic Server. Bronnen: [SWS_DM_01206], [SWS_DM_01209], AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”

Levenscyclus

De instantiëring van ara::diag::ClientAuthenticationHandle vindt regulier plaats door fabrieksmethoden van de Diagnostic Server tijdens Authenticate [SWS_DM_01206] of OverrideDefaultRoles [SWS_DM_01209]. Aanvullend stelt de klasse een parameterloze default constructor ter beschikking [SWS_DM_01146]; een dergelijk gecreëerd object fungeert vermoedelijk als ongebonden tijdelijke aanduiding totdat daaraan via move-toewijzing een actieve handle wordt overgedragen. Vraag Q-74f44c072616cce9 (open)

Wat eigendomsverhoudingen betreft implementeert de klasse strikte move-semantiek: move-constructor [SWS_DM_01148] en move-toewijzingsoperator [SWS_DM_01149] zijn gedefinieerd als noexcept = default. Kopiëren is volledig geblokkeerd, aangezien kopieerconstructor [SWS_DM_01150] en kopieertoewijzingsoperator [SWS_DM_01151] verwijderd (=delete) zijn. De vrijgave van de instantie vindt plaats via de destructor ~ClientAuthenticationHandle() [SWS_DM_01147].

Met betrekking tot gelijktijdigheid is de default constructor gespecificeerd als thread-safe (thread-safe) [SWS_DM_01146]. Daarentegen zijn de destructor [SWS_DM_01147] en alle toestandswijzigende methodeaanroepen aangeduid als niet thread-safe (not thread-safe) [SWS_DM_01152], [SWS_DM_01153], [SWS_DM_01154], [SWS_DM_01155]. Gelijktijdige toegang tot dezelfde handle vereist daarom synchronisatie aan de zijde van de applicatie.

Gebruikspad

Het typische verloop tijdens runtime omvat het configureren van dynamische rechten, het handhaven van de autorisatie en het gecontroleerd beëindigen:

  1. Handle verkrijgen: De applicatie initieert de authenticatie bij ara::diag::ClientAuthentication en ontvangt de handle-instantie [SWS_DM_01206].
  2. Toegangslijst instellen of uitbreiden: Via de methode Set vervangt de applicatie de dynamische toegangslijst van een diagnoseconversatie volledig [SWS_DM_01153], [SWS_DM_01213]. Als alternatief voegt Append aanvullende diagnosepatronen toe aan een bestaande toegangslijst [SWS_DM_01152] AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.4 “DynamicAccessList Creation and Update”.
  3. Activiteit vernieuwen: Bij inactiviteit in de standaardsessie dreigt na het verstrijken van de inactiviteitstime-out de automatische terugval naar kDeAuthenticated [SWS_DM_01210]. Door Refresh aan te roepen verlengt de applicatie de door Authenticate of OverrideDefaultRoles gestarte timers [SWS_DM_01155] AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”.
  4. Bevoegdheden intrekken: Met Revoke de-authenticeert de applicatie de client expliciet, verwijdert de bijbehorende DynamicAccessList en zet overschreven standaardrollen terug [SWS_DM_01154].
Authenticatie- en toegangsbesturing via ClientAuthenticationHandleAnwendungClientAuthenticationClientAuthenticationHandleDiagnosticServerUse Case: Authenticatie en handle-beschikbaarstellingAuthenticate(roles)Toestand op kAuthenticated instellenClientAuthenticationHandleUse Case: Rechtenconfiguratie en timer-actualiseringSet(dynamicAccessList)DynamicAccessList ersetzenResult<void>Refresh()Inaktivitaetstimer zuruecksetzenResult<void>Use Case: SitzungsbeendigungRevoke()kDeAuthenticated & Rechte loeschenResult<void>

Sequentiediagram: verloop van authenticatie, rechtenbeheer en intrekking via de handle. Bronnen: [SWS_DM_01206], [SWS_DM_01153], [SWS_DM_01155], [SWS_DM_01154]

Foutscenario's

De operatieve methoden Set [SWS_DM_01153], Append [SWS_DM_01152], Refresh [SWS_DM_01155] en Revoke [SWS_DM_01154] geven elk ara::core::Result<void> terug en zijn gedeclareerd als noexcept alsmede uitzonderingsveilig (exception safe).

Mislukt de communicatie of uitvoering omdat essentiële functionaliteiten van de Diagnostic Manager momenteel niet beschikbaar zijn, dan leveren de aanroepen de foutcode DiagErrc::kServiceNotAvailable [SWS_DM_01152], [SWS_DM_01153], [SWS_DM_01154], [SWS_DM_01155]. In dat geval treedt een rollback-semantiek in werking, zodat er geen inconsistente deelwijzigingen in de authenticatietoestand of de toegangslijsten van de client achterblijven.

Gebaseerd op de AUTOSAR Adaptive R25-11-specificatie van de diagnose-interface.

Ledenkaart

Klassendiagram

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

G nara__diag__ClientAuthenticationHandle939 ClientAuthenticationHandle + ClientAuthenticationHandle() + ~ClientAuthenticationHandle() + Append() + Refresh() + Revoke() + Set() + operator=()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Constructor of ClientAuthenticationHandle.

Overloads ClientAuthenticationHandle 3
ClientAuthenticationHandle () noexcept; SWS_DM_01146
ClientAuthenticationHandle (ClientAuthenticationHandle &&other) noexcept=default; SWS_DM_01148
ClientAuthenticationHandle (ClientAuthenticationHandle const &other)=delete; SWS_DM_01150

Destructor of ClientAuthenticationHandle.

Methoden

Append functie

This function is used by the application to append a DynamicAccessList to the already existing DynamicAccessList of a Diagnostic Conversation.

ara::core::Result< void > Append (DiagnosticServiceDynamicAccessList dynamicAccessList) noexcept;
Refresh functie

This function is used by the application to refresh the timer that was started by Authenticate or OverrideDefaultRoles. If both Methods were previously called, both timers are refreshed.

ara::core::Result< void > Refresh () noexcept;
Revoke functie

This function is used by the application to de-authenticate a client, and also to clear the Dynamic AccessList and any overridden defaults.

ara::core::Result< void > Revoke () noexcept;
Set functie

This function is used by the application to set/replace a DynamicAccessList of a Diagnostic Conversation.

ara::core::Result< void > Set (DiagnosticServiceDynamicAccessList dynamicAccessList) noexcept;

Operatoren

operator= functie 2

Move assignment operator of ClientAuthenticationHandle.

Overloads = 2
auto operator= (ClientAuthenticationHandle &&other) & noexcept -> ClientAuthenticationHandle & =default; SWS_DM_01149
auto operator= (ClientAuthenticationHandle const &other) -> Client AuthenticationHandle &=delete; SWS_DM_01151

Documentatie van de methoden

functie Append [SWS_DM_01152] Upstream: RS_Diag_04251

ara::core::Result< void > Append (DiagnosticServiceDynamicAccessList dynamicAccessList) noexcept;

This function is used by the application to append a DynamicAccessList to the already existing DynamicAccessList of a Diagnostic Conversation.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: ecc404bb2530 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De methode Append van de klasse ara::diag::ClientAuthenticationHandle wordt door applicaties gebruikt om een dynamische toegangslijst (dynamicAccessList) toe te voegen aan de reeds bestaande DynamicAccessList van een actieve diagnoseconversatie [SWS_DM_01152]. De interface wordt beschikbaar gesteld via de header ara/diag/client_authentication_handle.h AUTOSAR_AP_SWS_Diagnostics §8.6.1.1.3.1 “Append”.

De aanroep wordt synchroon uitgevoerd en is gespecificeerd als noexcept [SWS_DM_01152]. Als invoerparameter accepteert de functie een DiagnosticServiceDynamicAccessList. Het retourtype ara::core::Result<void> signaleert de succesvolle afronding of transporteert bij een fout de foutcode DiagErrc::kServiceNotAvailable [SWS_DM_01152]. Deze laatste geeft aan dat essentiële functies van Diagnostic Management momenteel niet beschikbaar zijn. Voor dit foutgeval geldt een rollback-semantiek, zodat de eerdere toestand van de toegangslijst behouden blijft [SWS_DM_01152].

Met betrekking tot gelijktijdigheid geldt de operatie als uitzonderingsveilig (exception safe), maar is deze uitdrukkelijk geclassificeerd als niet threadveilig (not thread-safe) [SWS_DM_01152]. Bij parallelle toegang tot hetzelfde handle-object is externe synchronisatie door de aanroepende applicatie dan ook vermoedelijk vereist. Vraag Q-f0da9a0538a86a16 (open)

Deze gebruiksinstructie is automatisch gegenereerd en is uitsluitend gebaseerd op de specificatiegegevens van AUTOSAR R25-11.

Implementer's Guide volgt (complexiteit I1)

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

Parameter (in)

ParameterBeschreibung
dynamicAccessListThe DynamicAccessList to be appended in the client.

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an 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_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01152@rel:R25-11#0dad8b8d
Content hash
0dad8b8d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01152
Status: valid/unmigrated Version: rel:R25-11#760cf1a2 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_01152@rel:R25-11#760cf1a2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#5fbe369d2026-09-30
  • R21-11rel:R21-11#fe6687392026-10-14
  • R22-11rel:R22-11#4d5753f62026-10-14
  • R23-11rel:R23-11#85d630192026-10-14
  • R24-11rel:R24-11#e44623a72026-10-14
  • R25-11rel:R25-11#760cf1a22026-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

functie ClientAuthenticationHandle [SWS_DM_01146] Upstream: RS_Diag_04251

ClientAuthenticationHandle () noexcept;

Constructor of ClientAuthenticationHandle.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 970d47856338 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone standaardconstructor [SWS_DM_01146] genereert een instantie van de klasse ara::diag::ClientAuthenticationHandle. De aanroep accepteert geen overdrachtsparameters en levert geen retourwaarde op. De functie is gedeclareerd als noexcept en gespecificeerd als thread-safe (thread-safe) en uitzonderingsveilig [SWS_DM_01146], zodat bij het aanmaken geen foutcodes of exceptions optreden.

Voor de doorgifte en de levenscyclus van het aangemaakte object gelden de volgende beperkingen:

In het totale systeem stelt de Diagnostic Server actieve, aan een client gebonden handles regulier beschikbaar via Authenticate [SWS_DM_01142] of OverrideDefaultRoles [SWS_DM_01141] (AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”). Een via de standaardconstructor gegenereerd exemplaar dient daarom vermoedelijk als een niet-gebonden tijdelijke aanduiding, die pas door een daaropvolgende move-toewijzing [SWS_DM_01149] een geldige handle opneemt om de toegangslijsten te beheren. Vraag Q-ce182402bd1d4072 (open)

Deze tekst is gegenereerd door een AI op basis van de AUTOSAR-specificatie R25-11.

Implementer's Guide volgt (complexiteit I2)

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

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

Record
AUTOSAR/AP/record/SWS_DM_01146
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01146@rel:R25-11#b29ea202
Content hash
b29ea202
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01146
Status: valid/unmigrated Version: rel:R25-11#e53f888a 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_01146@rel:R25-11#e53f888a
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#343d84612026-09-30
  • R21-11rel:R21-11#382fc8b12026-10-14
  • R22-11rel:R22-11#1b1476a42026-10-14
  • R23-11rel:R23-11#ae2414252026-10-14
  • R24-11rel:R24-11#2fa9197f2026-10-14
  • R25-11rel:R25-11#e53f888a2026-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

functie ClientAuthenticationHandle [SWS_DM_01148] Upstream: RS_Diag_04251

ClientAuthenticationHandle (ClientAuthenticationHandle &&other) noexcept=default;

Move constructor of ClientAuthenticationHandle.

Header-Datei#include "ara/diag/client_authentication_handle.h"
Scopeclass ara::diag::ClientAuthenticationHandle
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_01148
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01148@rel:R25-11#328edf40
Content hash
328edf40
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01148
Status: valid/unmigrated Version: rel:R25-11#61fab40f 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_01148@rel:R25-11#61fab40f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#398da6ac2026-09-30
  • R21-11rel:R21-11#4ded0cd12026-10-14
  • R22-11rel:R22-11#6906c58f2026-10-14
  • R23-11rel:R23-11#9b4b55cb2026-10-14
  • R24-11rel:R24-11#ce30ca042026-10-14
  • R25-11rel:R25-11#61fab40f2026-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

functie ClientAuthenticationHandle [SWS_DM_01150] Upstream: RS_Diag_04251

ClientAuthenticationHandle (ClientAuthenticationHandle const &other)=delete;

Copy constructor of ClientAuthenticationHandle cannot be used.

Header-Datei#include "ara/diag/client_authentication_handle.h"
Scopeclass ara::diag::ClientAuthenticationHandle

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

Record
AUTOSAR/AP/record/SWS_DM_01150
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01150@rel:R25-11#8124906a
Content hash
8124906a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01150
Status: valid/unmigrated Version: rel:R25-11#5c00c5f2 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_01150@rel:R25-11#5c00c5f2
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#b2ba2b412026-09-30
  • R21-11rel:R21-11#be3428ad2026-10-14
  • R22-11rel:R22-11#7ad065b42026-10-14
  • R23-11rel:R23-11#f8cce9ac2026-10-14
  • R24-11rel:R24-11#5c00c5f22026-10-14
  • R25-11rel:R25-11#5c00c5f22026-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

functie Refresh [SWS_DM_01155] Upstream: RS_Diag_04251

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

This function is used by the application to refresh the timer that was started by Authenticate or OverrideDefaultRoles. If both Methods were previously called, both timers are refreshed.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 8c9744884d32 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De methode Refresh van de klasse ara::diag::ClientAuthenticationHandle (headerbestand #include "ara/diag/client_authentication_handle.h") dient er voor een applicatie toe om actieve authenticatie- of rollentimers te verlengen (AUTOSAR_AP_SWS_Diagnostics §8.6.1.1.3.2 “Refresh”). Ze reset de timer die eerder door Authenticate of OverrideDefaultRoles is gestart. Indien eerder beide methoden werden aangeroepen, worden door de aanroep beide timers gelijktijdig vernieuwd [SWS_DM_01155].

De synchrone aanroep (interpretatie: directe teruggave zonder asynchrone future) vindt parameterloos plaats op een bestaande instantie van ClientAuthenticationHandle, die de applicatie na succesvolle afronding van Authenticate of OverrideDefaultRoles van de Diagnostic Server heeft ontvangen (AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”). Vraag Q-b07e81ff4629ada7 (open) De functie is gedeclareerd als noexcept en uitzonderingsveilig (exception safe), maar gespecificeerd als niet-draadveilig (not thread-safe) [SWS_DM_01155]. Gelijktijdige aanroepen op dezelfde instantie moeten daarom door de aanroeper worden gesynchroniseerd.

Mislukt de operatie, dan retourneert de functie via ara::core::Result<void> de foutcode DiagErrc::kServiceNotAvailable [SWS_DM_01155]. Dit geeft via rollback-semantiek aan dat de aanroep niet kon worden uitgevoerd omdat essentiële functionaliteiten van Diagnostic Management (DM) momenteel niet beschikbaar zijn [SWS_DM_01155].

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie AUTOSAR R25-11.

Implementer's Guide volgt (complexiteit I2)

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

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an 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_01155
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01155@rel:R25-11#14b3f939
Content hash
14b3f939
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01155
Status: valid/unmigrated Version: rel:R25-11#336ea0d5 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_01155@rel:R25-11#336ea0d5
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#b5659ac02026-09-30
  • R21-11rel:R21-11#f05c61ca2026-10-14
  • R22-11rel:R22-11#2739c0e72026-10-14
  • R23-11rel:R23-11#ebcd83152026-10-14
  • R24-11rel:R24-11#aa896f602026-10-14
  • R25-11rel:R25-11#336ea0d52026-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

functie Revoke [SWS_DM_01154] Upstream: RS_Diag_04251

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

This function is used by the application to de-authenticate a client, and also to clear the Dynamic AccessList and any overridden defaults.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 97421a5ce76e Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone methode Revoke van de klasse ara::diag::ClientAuthenticationHandle (SWS Diagnostics §8.6.1.1.3.3 “Revoke”) stelt applicaties in staat om een eerder geauthentiseerde diagnoseclient te deauthentiseren en diens dynamische toegangslijst (DynamicAccessList) en overschreven standaardrollen volledig te verwerpen ([SWS_DM_01154], [SWS_DM_01216]).

De functie heeft geen invoerparameters en geeft een ara::core::Result<void> terug ([SWS_DM_01154]). In het geval van succes wordt de authenticatiestatus van de client beëindigd. Is een essentiële functionaliteit van de Diagnostic Manager op het aanroeptijdstip niet beschikbaar, dan mislukt de operatie en levert deze de fout DiagErrc::kServiceNotAvailable op met rollback-semantiek ([SWS_DM_01154]).

Wat betreft gelijktijdigheid is de interface gespecificeerd als uitzonderingsveilig (exception safe), maar als niet threadveilig (not thread-safe) ([SWS_DM_01154]). Interpretatie: bij gelijktijdige toegang tot dezelfde handle-instantie vanuit meerdere threads moet de aanroepende applicatie vermoedelijk zorgen voor een externe synchronisatie. Vraag Q-8781261c9a2f5f8e (open)

In de algehele flow wordt de instantie van ClientAuthenticationHandle na succesvolle authenticatie of na het overschrijven van standaardrollen door de Diagnostic Server-instantie aan de applicatie beschikbaar gesteld (SWS Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”). Terwijl de actieve handle naast intrekking ook het vervangen ([SWS_DM_01213]) of uitbreiden ([SWS_DM_01215]) van de DynamicAccessList toestaat, beëindigt Revoke deze bevoegdheden van de client definitief.

Deze tekst is gegenereerd door een AI op basis van de specificatie AUTOSAR Adaptive R25-11.

Implementer's Guide volgt (complexiteit I1)

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

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an 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_01154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01154@rel:R25-11#42a56e38
Content hash
42a56e38
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01154
Status: valid/unmigrated Version: rel:R25-11#d654e83e 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_01154@rel:R25-11#d654e83e
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#0fc0c68f2026-09-30
  • R21-11rel:R21-11#341b16582026-10-14
  • R22-11rel:R22-11#b81da6112026-10-14
  • R23-11rel:R23-11#4f5f61352026-10-14
  • R24-11rel:R24-11#6d88b2f82026-10-14
  • R25-11rel:R25-11#d654e83e2026-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

functie Set [SWS_DM_01153] Upstream: RS_Diag_04251

ara::core::Result< void > Set (DiagnosticServiceDynamicAccessList dynamicAccessList) noexcept;

This function is used by the application to set/replace a DynamicAccessList of a Diagnostic Conversation.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 8ef0a8bd09d8 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone methode Set van de klasse ara::diag::ClientAuthenticationHandle ([SWS_DM_01153]) stelt een applicatie in staat om de dynamische toegangslijst (DynamicAccessList) voor een diagnoseconversatie c.q. een geauthentiseerde client in de Diagnostic Server in te stellen of volledig te vervangen ([SWS_DM_01213]). De Diagnostic Manager beheert voor elke geauthentiseerde client zo'n DynamicAccessList, die de client bovenop de in het Diagnostic Extract vastgelegde configuratie aanvullende toegangsrechten tot diagnoseresources kan verlenen (AUTOSAR_AP_SWS_Diagnostics §7.3.2.3.3 “ClientAuthenticationHandle”).

Bij het gebruik zijn de volgende aspecten van belang:

  • Aanroepcontext en parameters: De functie wordt aangeroepen op een instantie van ara::diag::ClientAuthenticationHandle (gedeclareerd in #include "ara/diag/client_authentication_handle.h"). Een dergelijke handle-instantie wordt aan de applicatie beschikbaar gesteld wanneer vooraf hetzij ara::diag::ClientAuthentication::Authenticate ([SWS_DM_01206]) hetzij ara::diag::ClientAuthentication::OverrideDefaultRoles ([SWS_DM_01209]) succesvol is afgerond. Als enige invoerparameter wordt dynamicAccessList van het type DiagnosticServiceDynamicAccessList overgedragen, die de nieuwe toegangslijst definieert ([SWS_DM_01153]).
  • Retourwaarde en foutafhandeling: De methode is gespecificeerd als noexcept en retourneert een ara::core::Result<void>. Zij werkt met rollback-semantiek: kan de aanroep niet worden uitgevoerd omdat essentiële DM-functionaliteit momenteel niet beschikbaar is, dan mislukt de aanroep met de foutcode DiagErrc::kServiceNotAvailable ([SWS_DM_01153]). Wat betreft exceptieafhandeling is de methode geclassificeerd als uitzonderingsveilig (exception safe).
  • Gelijktijdigheid: De operatie is expliciet gedefinieerd als niet threadveilig (not thread-safe) ([SWS_DM_01153]). Worden aanroepen op dezelfde handle-instantie gelijktijdig vanuit meerdere threads uitgevoerd, dan rust de noodzakelijke synchronisatie op de applicatie.

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de AUTOSAR-specificatie.

Implementer's Guide volgt (complexiteit I1)

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

Parameter (in)

ParameterBeschreibung
dynamicAccessListThe new DynamicAccessList to be set in the client.

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an 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_01153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01153@rel:R25-11#57b35f30
Content hash
57b35f30
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01153
Status: valid/unmigrated Version: rel:R25-11#6e0f3d93 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_01153@rel:R25-11#6e0f3d93
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#850c01d82026-09-30
  • R21-11rel:R21-11#4dff11b12026-10-14
  • R22-11rel:R22-11#5a0f43622026-10-14
  • R23-11rel:R23-11#768f7ce22026-10-14
  • R24-11rel:R24-11#bac10bed2026-10-14
  • R25-11rel:R25-11#6e0f3d932026-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

functie operator= [SWS_DM_01149] Upstream: RS_Diag_04251

auto operator= (ClientAuthenticationHandle &&other) & noexcept -> ClientAuthenticationHandle & =default;

Move assignment operator of ClientAuthenticationHandle.

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

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

Rückgabewert

TypBeschreibung
ClientAuthenticationHandleClientAuthenticationHandle& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01149
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01149@rel:R25-11#2d63b3c2
Content hash
2d63b3c2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01149
Status: valid/unmigrated Version: rel:R25-11#6d429c60 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_01149@rel:R25-11#6d429c60
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#825bafd02026-09-30
  • R21-11rel:R21-11#6b6602162026-10-14
  • R22-11rel:R22-11#7c114d032026-10-14
  • R23-11rel:R23-11#f26ac2222026-10-14
  • R24-11rel:R24-11#13552b832026-10-14
  • R25-11rel:R25-11#6d429c602026-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

functie operator= [SWS_DM_01151] Upstream: RS_Diag_04251

auto operator= (ClientAuthenticationHandle const &other) -> Client AuthenticationHandle &=delete;

Copy assignment operator of CancellationHandler cannot be used.

Header-Datei#include "ara/diag/client_authentication_handle.h"
Scopeclass ara::diag::ClientAuthenticationHandle

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

Record
AUTOSAR/AP/record/SWS_DM_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01151@rel:R25-11#551c26e3
Content hash
551c26e3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01151
Status: valid/unmigrated Version: rel:R25-11#41e0cc7a 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_01151@rel:R25-11#41e0cc7a
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#e7f217352026-09-30
  • R21-11rel:R21-11#e234b1652026-10-14
  • R22-11rel:R22-11#8556e28c2026-10-14
  • R23-11rel:R23-11#114f1c5c2026-10-14
  • R24-11rel:R24-11#41e0cc7a2026-10-14
  • R25-11rel:R25-11#41e0cc7a2026-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

functie ~ClientAuthenticationHandle [SWS_DM_01147] Upstream: RS_Diag_04251

~ClientAuthenticationHandle () noexcept;

Destructor of ClientAuthenticationHandle.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 284dd06f8411 Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Gebruik en semantiek

De functie ~ClientAuthenticationHandle() is de destructor van de klasse ara::diag::ClientAuthenticationHandle en wordt gedeclareerd via het headerbestand ara/diag/client_authentication_handle.h ([SWS_DM_01147], AUTOSAR_AP_SWS_Diagnostics §8.6.1.1.1.3 “Destructor”). Deze accepteert geen overdrachtparameters en levert geen retourwaarde op. De aanroep vindt gewoonlijk impliciet plaats bij het beëindigen van de levensduur van het object. Interpretatie: hierbij worden vermoedelijk alle intern door de handle gebonden resources van de clientauthenticatie vrijgegeven. Vraag Q-ea8f47232fd9951f (open)

Foutafhandeling en exception-veiligheid

De destructor is gedeclareerd als noexcept en expliciet gespecificeerd als exception safe ([SWS_DM_01147]). Tijdens de vernietiging van het object worden er bijgevolg geen C++-exceptions gegenereerd en worden er geen specifieke foutcodes gerapporteerd, zodat het opschoonproces gegarandeerd foutloos wordt afgerond.

Gelijktijdigheid en beperkingen

De vernietiging van een ClientAuthenticationHandle is volgens de specificatie geclassificeerd als not thread-safe ([SWS_DM_01147]). De aanroepende applicatie moet ervoor zorgen dat er geen andere threads parallel toegang hebben tot dezelfde instantie terwijl de destructor wordt uitgevoerd.

Deze tekst is gegenereerd door een AI op basis van de specificatie AUTOSAR Adaptive R25-11.

Implementer's Guide volgt (complexiteit I1)

Header-Datei#include "ara/diag/client_authentication_handle.h"
Scopeclass ara::diag::ClientAuthenticationHandle
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_01147
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01147@rel:R25-11#fccc9733
Content hash
fccc9733
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01147
Status: valid/unmigrated Version: rel:R25-11#b9cd7178 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_01147@rel:R25-11#b9cd7178
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#f9cc0a482026-09-30
  • R21-11rel:R21-11#3b91d66c2026-10-14
  • R22-11rel:R22-11#cca9279f2026-10-14
  • R23-11rel:R23-11#4de7c36f2026-10-14
  • R24-11rel:R24-11#0092ff1b2026-10-14
  • R25-11rel:R25-11#b9cd71782026-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