функция ClearCertificateSlot [SWS_CRYPT_40622] Upstream: RS_CRYPTO_02306
virtual ara::core::Result< bool > ClearCertificateSlot (const ara::core::InstanceSpecifier &instanceSpecifier) noexcept=0;
Clear the certificate slot identified by the passed instance specifier.
Использование
Синхронный метод ClearCertificateSlot класса ara::crypto::x509::X509Provider очищает позицию хранения сертификата, заданную через параметр instanceSpecifier [SWS_CRYPT_40622]. Он возвращает ara::core::Result<bool>: возвращаемое значение равно true, если существующий сертификат был успешно удален, и false, если слот уже был свободен [SWS_CRYPT_40622].
Обработка ошибок и ограничения
Если операция временно не может быть выполнена, функция возвращает код ошибки ara::crypto::CryptoErrc::kBusyResource с семантикой отката [SWS_CRYPT_40622]. Кроме того, определены специфические требования к моделированию и доступу:
ProcessMappingViolation: возникает, еслиInstanceSpecifierуказывает не на смоделированный для текущего процессаPortPrototypeс интерфейсомCryptoCertificateInterface[SWS_CRYPT_40622].InsufficientPermissionsViolation: возникает, если у текущего процесса отсутствуют права на запись, т. е. установленCryptoCertificateToPortPrototypeMapping.writeAccess != True[SWS_CRYPT_40622].
Параллелизм
Интерфейс обозначен как noexcept, специфицирован как безопасный по отношению к исключениям (exception safe) и потокобезопасный (thread-safe) для конкурентных вызовов [SWS_CRYPT_40622].
Это указание по использованию создано автоматически на основе данных спецификации.
Руководство разработчика реализации в подготовке (сложность I1)
| Header-Datei | #include "ara/crypto/x509/x509_provider.h" |
|---|---|
| Scope | class ara::crypto::x509::X509Provider |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
| Verletzungen (Violations) | ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateToPortPrototypeMapping.writeAccess != True |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| instanceSpecifier | An instance specifier identifying a storage location of a certificate. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< bool > | true if the slot contained a certificate which has been successfully removed false if the slot contained no certificate. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kBusyResource | rollback_semantics if the operation temporarily cannot be performed |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_40622- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_40622@rel:R25-11#f62662fe- Content hash
f62662fe- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40622
Status: valid/unmigrated
Version: rel:R25-11#c87d5644
Versionshistorie & Revisions (1 transition, 8 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_CRYPT_40622@rel:R25-11#c87d5644
Recorded Revisions (8):
- R25-11
rel:R25-11#4acf5aaa2026-09-30 - R19-11
rel:R19-11#9a648bef2026-10-14 - R20-11
rel:R20-11#9816a1ad2026-10-14 - R21-11
rel:R21-11#be9e5a522026-10-14 - R22-11
rel:R22-11#a6750b412026-10-14 - R23-11
rel:R23-11#c52c6c322026-10-14 - R24-11
rel:R24-11#a2473ff72026-10-14 - R25-11
rel:R25-11#c87d56442026-10-14 active
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 · Немецкий оригинал