دالة 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.
الاستخدام
تُستخدم الطريقة GetCertificates للواجهة ara::crypto::x509::OcspResponse ([SWS_CRYPT_50131]) للاسترداد المتزامن لجميع الشهادات المضمنة في استجابة 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#4b55f395- Content hash
4b55f395- 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 · الأصل الألماني