functie GetCertificates [SWS_CRYPT_50131] Upstream: RS_CRYPTO_02306
virtual ara::core::Result< ara::core::Vector< Certificate::Sptrc > > GetCertificates () const noexcept=0;
Get the certificates contained in the OCSP response.
Gebruik
De methode GetCertificates van de interface ara::crypto::x509::OcspResponse ([SWS_CRYPT_50131]) dient voor het synchroon opvragen van alle certificaten die zijn ingebed in een ontvangen OCSP-antwoord. De aanroep vindt parameterloos plaats op een instantie van OcspResponse via de header ara/crypto/x509/ocsp_response.h ([SWS_CRYPT_50131]). Als retourwaarde levert de functie een ara::core::Result<ara::core::Vector<Certificate::Sptrc>> ([SWS_CRYPT_50131]), die bij succesvolle uitvoering een vector met smart pointers naar de aanwezige certificaatobjecten ter beschikking stelt.
Foutafhandeling
Conform de specificatie definieert de functie geen gestandaardiseerde foutcodes ([SWS_CRYPT_50131]). Interpretatie: Door de inkapseling in het retourtype ara::core::Result moet een aanroeper vermoedelijk alsnog controleren op eventuele implementatiespecifieke fouttoestanden, hoewel AUTOSAR voor deze methode niet voorziet in genormeerde fouten ([SWS_CRYPT_50131]). Vraag Q-d37b6b547d25b17f (open)
Gelijktijdigheid en beperkingen
De interfacedefinitie merkt GetCertificates aan als const en noexcept ([SWS_CRYPT_50131]). Bovendien is de functie gespecificeerd als thread-safe en exception-safe ([SWS_CRYPT_50131]). Aanroepers kunnen de methode daarom parallel vanuit meerdere threads gelijktijdig uitvoeren, zonder dat externe synchronisatiemechanismen vereist zijn.
Deze tekst is automatisch gegenereerd op basis van de AUTOSAR-specificaties.
Implementer's Guide volgt (complexiteit I1)
| Header-Datei | #include "ara/crypto/x509/ocsp_response.h" |
|---|---|
| Scope | class ara::crypto::x509::OcspResponse |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<ara::core::Vector<Certificate::Sptrc > > | A Vector containing the certificates contained in the OCSP response. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| This function does not specify any standardized errors. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_50131- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50131@rel:R25-11#72c5b293- Content hash
72c5b293- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50131
Status: valid/unmigrated
Version: rel:R25-11#dbb9122d
Versionshistorie & Revisions (1 transition)
- 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_CRYPT_50131@rel:R25-11#dbb9122d
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · Duits origineel