DiagnosticSecurityAccessInterface.
更多...
#include <security_access.h>
DiagnosticSecurityAccessInterface.
- Swsid
- SWS_DM_00761
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- class
- 符号
- SecurityAccess
- 范围
- namespace ara::diag
- 基类
- N/A
- 分类
- ara
- 头文件
- ara/diag/security_access.h"
- 注解
- The SecurityAccess service is used to represent the result of the Key value comparison.
- 模板参数
-
在文件 第 行定义.
◆ KeyCompareResultType
Represents the status of the key compare.
- Swsid
- SWS_DM_00760
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- enumeration
- 符号
- KeyCompareResultType
- 范围
- class ara::diag::SecurityAccess
- 基本类型
- N/A
- 取值
- N/A
- 分类
- ara
- 头文件
- ara/diag/security_access.h
- 注解
- N/A
| 枚举值 |
|---|
| kKeyValid | Key is valid.
|
| kKeyInvalid | Key is invalid.
|
在文件 第 行定义.
◆ SecurityAccess()
| ara::diag::SecurityAccess::SecurityAccess |
( |
const ara::core::InstanceSpecifier & |
specifier, |
|
|
ReentrancyType |
reentrancyType |
|
) |
| |
|
explicit |
Constructor of SecurityAccess.
- 模板参数
-
- 参数
-
| [in] | specifier | InstanceSpecifier to an PortPrototype of an DiagnosticSecurityAccessInterface |
| [in] | reentrancyType | specifies if interface is callable fully- or non-reentrant |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00762
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/security_access.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
◆ ~SecurityAccess()
| ara::diag::SecurityAccess::~SecurityAccess |
( |
| ) |
|
|
virtualnoexcept |
Destructor of SecurityAccess.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00763
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/security_access.h
- 异常安全
- noexcept
- 分类
- ara
在文件 第 行定义.
◆ CompareKey()
This method is called, when a diagnostic request has been finished, to notify about the outcome.
- 模板参数
-
- 参数
-
| [in] | key | The key to be validated |
| [in] | metaInfo | MetaInfo of the request. |
| [in] | cancellationHandler | Set if the current conversation is canceled. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Future< KeyCompareResultType >
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00765
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kSubfunctionNotSupported
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kIncorrectMessageLengthOrInvalidFormat
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kConditionsNotCorrect
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestSequenceError
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestOutOfRange
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kInvalidKey
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kExceedNumberOfAttempts
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequiredTimeDelayNotExpired
- 头文件
- ara/diag/security_access.h
- 异常安全
- N/A
- 分类
- ara
◆ GetSeed()
| virtual ara::core::Future<ara::core::Span<std::uint8_t> > ara::diag::SecurityAccess::GetSeed |
( |
ara::core::Span< std::uint8_t > |
securityAccessDataRecord, |
|
|
MetaInfo & |
metaInfo, |
|
|
CancellationHandler & |
cancellationHandler |
|
) |
| |
|
pure virtual |
Called for any request messsage.
- 模板参数
-
- 参数
-
| [in] | securityAccessDataRecord | Security Access payload |
| [in] | metaInfo | MetaInfo of the request. |
| [in] | cancellationHandler | Set if the current conversation is canceled. |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Future<ara::core::Span<std::uint8_t> >
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00764
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kSubfunctionNotSupported
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kIncorrectMessageLengthOrInvalidFormat
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kConditionsNotCorrect
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestSequenceError
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequestOutOfRange
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kInvalidKey
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kExceedNumberOfAttempts
- 错误
- DiagUdsNrcErrorDomain::DiagUdsNrcErrc::kRequiredTimeDelayNotExpired
- 头文件
- ara/diag/security_access.h
- 异常安全
- N/A
- 分类
- ara
◆ Offer()
| ara::core::Result< void > ara::diag::SecurityAccess::Offer |
( |
| ) |
|
This Offer will enable the DM to forward request messages to this handler.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- ara::core::Result<void>
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00766
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- DiagErrorDomain::DiagReportingErrc::kGenericError
- 错误
- DiagErrorDomain::DiagOfferErrc::kAlreadyOffered
- 头文件
- ara/diag/security_access.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.
引用了 ara::diag::kAlreadyOffered.
◆ StopOffer()
| void ara::diag::SecurityAccess::StopOffer |
( |
| ) |
|
This StopOffer will disable the forwarding of request messages from DM.
- 模板参数
-
- 参数
-
| [in] | N/A | |
| [out] | N/A | |
| [in,out] | N/A | |
- 返回
- N/A
- 注解
- N/A
- 异常
-
- Swsid
- SWS_DM_00767
- 符合标准
- yes
- 非标原因
- N/A
- 种类
- function
- 可见
- public
- 线程安全
- no
- Fireandforget
- no
- 错误
- N/A
- 头文件
- ara/diag/security_access.h
- 异常安全
- N/A
- 分类
- ara
在文件 第 行定义.