类 ara::crypto::cryp::KeySlot
[SWS_CRYPT_50145] Upstream: RS_CRYPTO_02405
class KeySlot {...};
KeySlot interface representing a storage location for a key in a CryptoProvider.
Header-Datei #include "ara/crypto/cryp/keyslot.h" Forwarding-Header #include "ara/crypto/crypto_fwd.h" Scope namespace ara::crypto::cryp
用户指南人工智能生成 管理加密密钥的存储空间,并支持元数据查询以及更改回调。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 15ebff2d544c
来源
未决问题(1)
摘要 详细
管理加密密钥的存储空间,并支持元数据查询以及更改回调。
本指南由 AI 基于规范 R25-11 编写。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__crypto__cryp__KeySlot637
KeySlot
+ KeySlot()
+ operator=()
+ ~KeySlot()
+ GetAlgId()
+ GetCryptoObjectType()
+ GetCryptoProvider()
+ GetPossibleAlgIds()
+ RegisterUpdateObserver()
+ UnregisterUpdateObserver()
nara__crypto__cryp__WriteableKeySlot529
WriteableKeySlot
nara__crypto__cryp__WriteableKeySlot529->nara__crypto__cryp__KeySlot637
详细视图 此版本没有元素数据
构造函数和析构函数 Copy-Constructor.
重载 KeySlot 2 Destructor.
virtual ~KeySlot () noexcept=default;方法 The interface shall return the AlgId of the currently stored key.
The interface shall return the CryptoObjectType of the currently stored key.
The interface shall return an instance of the CryptoProvider that is responsible for this KeySlot.
The interface shall return a vector of AlgIds supported by this KeySlot.
The interface shall register an application callback function to be called when the content of the KeySlot is updated (i.e., modified or cleared). If this function is called multiple times, only the most recently registered callback of an application will be called.
Unregisters any previously UpdateObserver callback that has been registered previously by the application.
运算符 Copy-assign another KeySlot to this instance.
重载 = 2 类型别名 Smart pointer of the interface.
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
virtual ara::core::Result < ara::crypto::AlgIdString > GetAlgId () const noexcept=0;
The interface shall return the AlgId of the currently stored key.
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#24c0bae9
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_50055@rel:R25-11#24c0bae9
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < CryptoObjectType > GetCryptoObjectType () const noexcept=0;
The interface shall return the CryptoObjectType of the currently stored key.
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#4fb87b0b
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_50054@rel:R25-11#4fb87b0b
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::shared_ptr < cryp::CryptoProvider > > GetCryptoProvider () const noexcept=0;
The interface shall return an instance of the CryptoProvider that is responsible for this KeySlot.
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung ara::core::Result <std::shared_ptr<cryp::CryptoProvider > >a result containing a shared pointer to the CryptoProvider to be used with this KeySlot
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#5cab9276
Versionshistorie & Revisions (1 transition, 7 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_30403@rel:R25-11#5cab9276
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#521de99b2026-09-30 Inspect R20-11 rel:R20-11#26f02eba2026-10-14 Inspect R21-11 rel:R21-11#9fc6a2d12026-10-14 Inspect R22-11 rel:R22-11#c2239d192026-10-14 Inspect R23-11 rel:R23-11#c19ad2fa2026-10-14 Inspect R24-11 rel:R24-11#5558cd092026-10-14 Inspect R25-11 rel:R25-11#5cab92762026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < ara::core::Vector < ara::crypto::AlgIdString > > GetPossibleAlgIds () const noexcept=0;
The interface shall return a vector of AlgIds supported by this KeySlot.
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#d68e626e
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_50056@rel:R25-11#d68e626e
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeySlot (const KeySlot &)=delete;
Status: valid/unmigrated
Version: rel:R25-11#c337b0c3
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_50149@rel:R25-11#c337b0c3
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeySlot (KeySlot &&)=delete;
Status: valid/unmigrated
Version: rel:R25-11#4bc5a8dd
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_50150@rel:R25-11#4bc5a8dd
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > RegisterUpdateObserver (std::function < void(ara::core::StringView )> callback, ara::core::StringView keySlotIdentifier) const noexcept=0;
The interface shall register an application callback function to be called when the content of the KeySlot is updated (i.e., modified or cleared). If this function is called multiple times, only the most recently registered callback of an application will be called.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9361e576efa7
来源
未决问题(1)
本使用说明基于 AUTOSAR Adaptive R25-11 规范。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung callback the registered callback function to be called when the KeySlot content is modified keySlotIdentifier an application-specific identified of the KeySlot which will be used as a parameter of the callback function
Rückgabewert
Typ Beschreibung ara::core::Result < void >an empty result or an implementation specific error.
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#00db85c0
Versionshistorie & Revisions (1 transition, 7 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_30404@rel:R25-11#00db85c0
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#6cb45e062026-09-30 Inspect R20-11 rel:R20-11#68122f052026-10-14 Inspect R21-11 rel:R21-11#68122f052026-10-14 Inspect R22-11 rel:R22-11#4bd4986b2026-10-14 Inspect R23-11 rel:R23-11#b0d1e1432026-10-14 Inspect R24-11 rel:R24-11#d83bf7342026-10-14 Inspect R25-11 rel:R25-11#00db85c02026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > UnregisterUpdateObserver () const noexcept=0;
Unregisters any previously UpdateObserver callback that has been registered previously by the application.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b5edba50839d
来源
未决问题(1)
类 ara::crypto::cryp::KeySlot 的方法 UnregisterUpdateObserver 用于注销先前由应用程序注册的观察者回调(UpdateObserver)[SWS_CRYPT_30406] 。该函数在头文件 ara/crypto/cryp/keyslot.h 中声明,设计为纯虚方法(=0),并且不期望任何传入参数 [SWS_CRYPT_30406] 。
关于调用上下文和并发性,适用以下约束条件:
同步语义与线程安全性: 注销同步进行,并显式指定为 thread-safe [SWS_CRYPT_30406] 。因此,可以线程安全地调用,并与同一 KeySlot 实例上的其他操作并发执行。
异常安全性: 该方法具有规范 noexcept 并被视为 exception-safe [SWS_CRYPT_30406] 。因此,错误状态绝不会导致 C++ 异常,而是通过返回对象有序处理。
作为返回值,该函数提供一个 ara::core::Result<void>,成功注销时该对象为空,或者在发生错误时封装错误码 [SWS_CRYPT_30406] 。规范特意未为此调用定义标准化的 AUTOSAR 错误码;因此,任何错误都是特定于供应商或实现的 [SWS_CRYPT_30406] 。调用方必须检查结果是否出错,但无法针对标准化的错误常量进行检查。
在与密钥管理协同工作时,该注销可靠地阻止应用程序接收有关密钥内容更改的进一步通知。如果在调用时尚未注册任何回调,按照解释,该函数大概要么无效地成功返回,要么输出特定于实现的错误。 问题 Q-7a1e7e0db0691ce6 (未决)
本使用说明基于 AUTOSAR 规范自动创建。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/crypto/cryp/keyslot.h" Scope class ara::crypto::cryp::KeySlot Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung ara::core::Result < void >an empty result or an implementation specific error.
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#bbacdbfa
Versionshistorie & Revisions (1 transition, 7 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_30406@rel:R25-11#bbacdbfa
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#7a49fb252026-09-30 Inspect R20-11 rel:R20-11#d23bfef12026-10-14 Inspect R21-11 rel:R21-11#146b6c222026-10-14 Inspect R22-11 rel:R22-11#34a2bb242026-10-14 Inspect R23-11 rel:R23-11#c39da02b2026-10-14 Inspect R24-11 rel:R24-11#28d79d9d2026-10-14 Inspect R25-11 rel:R25-11#bbacdbfa2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeySlot & operator= (const KeySlot &other)=delete;
Copy-assign another KeySlot to this instance.
Status: valid/unmigrated
Version: rel:R25-11#4184cb45
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_50147@rel:R25-11#4184cb45
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeySlot & operator= (KeySlot &&other)=delete;
Move-assign another KeySlot to this instance.
Status: valid/unmigrated
Version: rel:R25-11#6c6a4006
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_50148@rel:R25-11#6c6a4006
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ~KeySlot () noexcept=default;
Status: valid/unmigrated
Version: rel:R25-11#b9fe0bea
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_50146@rel:R25-11#b9fe0bea
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
类型别名文档
using Sptr = std::shared_ptr <KeySlot >;
Smart pointer of the interface.
Status: valid/unmigrated
Version: rel:R25-11#2fca90de
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_50151@rel:R25-11#2fca90de
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically 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 · 德文原文