AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Properties Implementation. More...
Namespaces | |
test | |
Test cases for Properties Implementation. | |
Classes | |
class | ErrorCallbackInterface |
Callback interface to handle errors. More... | |
class | MiscStorageUriMapperInterface |
Interface to map properties config URI into component name and table name. More... | |
class | SimpleMiscStorageUriMapper |
Generic URI mapper for MiscStorageInterface adapter. More... | |
Enumerations | |
enum | StatusCode { StatusCode::SUCCESS = 1, StatusCode::UNKNOWN_ERROR = 2, StatusCode::HSM_ERROR = 3, StatusCode::CRYPTO_ERROR = 4, StatusCode::DIGEST_ERROR = 5, StatusCode::INNER_PROPERTIES_ERROR = 6 } |
Possible error causes. More... | |
enum | Action { Action::CONTINUE = 1, Action::FAIL = 2, Action::CLEAR_DATA = 3, Action::RETRY = 4 } |
Error action. More... | |
Functions | |
std::shared_ptr< PropertiesFactoryInterface > | createEncryptedPropertiesFactory (const std::shared_ptr< PropertiesFactoryInterface > &innerFactory, const std::shared_ptr< CryptoFactoryInterface > &cryptoFactory, const std::shared_ptr< KeyStoreInterface > &keyStore) noexcept |
Creates properties factory with encryption support by wrapping a factory without encryption support. More... | |
std::shared_ptr< PropertiesFactoryInterface > | createEncryptedPropertiesFactory (const std::shared_ptr< MiscStorageInterface > &innerStorage, const std::shared_ptr< MiscStorageUriMapperInterface > &uriMapper, const std::shared_ptr< CryptoFactoryInterface > &cryptoFactory, const std::shared_ptr< KeyStoreInterface > &keyStore) noexcept |
Creates properties factory with encryption support by wrapping a MiscStorageInterface . More... | |
bool | setErrorCallback (const std::weak_ptr< ErrorCallbackInterface > &callback, uint32_t maxRetries=DEFAULT_MAX_RETRIES, std::weak_ptr< ErrorCallbackInterface > *previous=nullptr) noexcept |
Sets an error callback. More... | |
std::shared_ptr< PropertiesFactoryInterface > | createPropertiesFactory (const std::shared_ptr< MiscStorageInterface > &innerStorage, const std::shared_ptr< MiscStorageUriMapperInterface > &nameMapper=SimpleMiscStorageUriMapper::create()) noexcept |
Creates PropertiesFactoryInterface from MiscStorageInterface . More... | |
Variables | |
static constexpr uint32_t | DEFAULT_MAX_RETRIES = 16u |
Default number of retries when using error callback interface. More... | |
static constexpr uint32_t | UNLIMITED_RETRIES = UINT32_MAX |
Unlimited number of retries when using error callback interface. More... | |
Properties Implementation.
|
noexcept |
Creates properties factory with encryption support by wrapping a factory without encryption support.
Encrypted properties factory protects all values using AES-256 cipher. The data key is stored as one of the underlying properties with reserved name "$acsdkEncryption$" in encrypted form. Hardware security module is used for storing the main encryption key and wrapping/unwrapping data keys.
When client code accesses PropertiesInterface
through encrypted PropertiesFactoryInterface
, all existing data is automatically converted into encrypted form.
[in] | innerFactory | Properties factory without encryption support. |
[in] | cryptoFactory | Crypto factory reference. This parameter must not be nullptr. |
[in] | keyStore | Key store factory reference. This parameter must not be nullptr. |
|
static |
Default number of retries when using error callback interface.
Number of retries limits number of error handling attempts when implementation encounters a recoverable error. If retry callback requests more than the given number of retries, the operation is considered as failed.
|
static |
Unlimited number of retries when using error callback interface.
If this value is used when setting error callback, the implementation will never give up on retries unless callback tell to do so.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0