फ़ंक्शन 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.
उपयोग
क्लास ara::crypto::x509::X509Provider का सिंक्रोनस मेथड ClearCertificateSlot पैरामीटर instanceSpecifier के माध्यम से निर्दिष्ट प्रमाणपत्र स्टोरेज स्पेस को खाली करता है [SWS_CRYPT_40622]। यह एक ara::core::Result<bool> लौटाता है: यदि किसी मौजूदा प्रमाणपत्र को सफलतापूर्वक हटा दिया गया था, तो रिटर्न मान true होता है, और यदि स्लॉट पहले से ही खाली था, तो false होता है [SWS_CRYPT_40622]।
त्रुटि प्रबंधन और सीमाएँ
यदि ऑपरेशन अस्थायी रूप से निष्पादित नहीं किया जा सकता है, तो फ़ंक्शन रोलबैक सेमांटिक्स के साथ एरर कोड ara::crypto::CryptoErrc::kBusyResource प्रदान करता है [SWS_CRYPT_40622]। इसके अतिरिक्त, विशिष्ट मॉडलिंग और एक्सेस आवश्यकताएं परिभाषित हैं:
ProcessMappingViolation: तब घटित होता है जबInstanceSpecifierवर्तमान प्रक्रिया के लिए इंटरफ़ेसCryptoCertificateInterfaceके साथ मॉडल किए गएPortPrototypeको इंगित नहीं करता है [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#3aa45218- Content hash
3aa45218- 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 · जर्मन मूल