function 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.
use
The method GetCertificates of interface ara::crypto::x509::OcspResponse ([SWS_CRYPT_50131]) serves to synchronously retrieve all certificates embedded in a received OCSP response. The call is made without parameters on an instance of OcspResponse via header ara/crypto/x509/ocsp_response.h ([SWS_CRYPT_50131]). As a return value, the function provides an ara::core::Result<ara::core::Vector<Certificate::Sptrc>> ([SWS_CRYPT_50131]) that, upon successful execution, provides a vector with smart pointers to the contained certificate objects.
Error handling
According to the specification, the function defines no standardized error codes ([SWS_CRYPT_50131]). Interpretation: Due to the encapsulation in return type ara::core::Result, a caller should nevertheless have to check for any implementation-specific error states, even though AUTOSAR does not foresee standardized errors for this method ([SWS_CRYPT_50131]). Question Q-d37b6b547d25b17f (open)
Concurrency and Limitations
The interface definition designates GetCertificates as const and noexcept ([SWS_CRYPT_50131]). In addition, the function is specified as thread-safe and exception-safe ([SWS_CRYPT_50131]). Callers can therefore execute the method concurrently in parallel from multiple threads without external synchronization mechanisms being required.
This text was automatically generated based on the AUTOSAR specifications.
Implementer's Guide to follow (complexity 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#dbb9122d- Content hash
dbb9122d- 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 · German original