函数 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.
使用
接口 ara::crypto::x509::OcspResponse([SWS_CRYPT_50131])的方法 GetCertificates 用于同步检索接收到的 OCSP 响应中嵌入的所有证书。该调用在 OcspResponse 的实例上无参数进行,通过头文件 ara/crypto/x509/ocsp_response.h([SWS_CRYPT_50131])。作为返回值,该函数提供一个 ara::core::Result<ara::core::Vector<Certificate::Sptrc>>([SWS_CRYPT_50131]),在成功执行时提供一个包含指向所含证书对象的智能指针的向量。
错误处理
根据规范,该函数未定义标准化错误代码([SWS_CRYPT_50131])。解释:通过在返回类型 ara::core::Result 中的封装,调用方可能仍须检查是否存在任何实现特定的错误状态,尽管 AUTOSAR 未为此方法规定规范化错误([SWS_CRYPT_50131])。 问题 Q-d37b6b547d25b17f (未决)
并发性与限制
接口定义将 GetCertificates 标明为 const 以及 noexcept([SWS_CRYPT_50131])。此外,该函数被指定为 thread-safe 和 exception-safe([SWS_CRYPT_50131])。因此,调用方可以从多个线程并发地并行执行该方法,而无需外部同步机制。
该文本根据 AUTOSAR 规范自动生成。
实现者指南即将推出(复杂度 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#ff428e1d- Content hash
ff428e1d- 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 · 德文原文