AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AuthorizationManagerStorage.h>
Public Member Functions | |
bool | store (const std::string &adapterId, const std::string &userId) |
bool | load (std::string &adapterId, std::string &userId) |
void | clear () |
Static Public Member Functions | |
static std::shared_ptr< AuthorizationManagerStorage > | create (const std::shared_ptr< avsCommon::sdkInterfaces::storage::MiscStorageInterface > &storage) |
An encapsulation of logic used to read and write the adapterId and userId, which are used to identify the instance of the user that is currently logged in. This reuses MiscStorageInterface
.
void alexaClientSDK::acsdkAuthorization::AuthorizationManagerStorage::clear | ( | ) |
Clears the table. This will not delete the database.
|
static |
Create a storage interface.
storage | The underlying storage interface. |
bool alexaClientSDK::acsdkAuthorization::AuthorizationManagerStorage::load | ( | std::string & | adapterId, |
std::string & | userId | ||
) |
Loads information from the database.
[out] | adapterId | The adapterId. |
[out] | userId | The userId. |
bool alexaClientSDK::acsdkAuthorization::AuthorizationManagerStorage::store | ( | const std::string & | adapterId, |
const std::string & | userId | ||
) |
Stores the information into the database. This will overwrite any existing entries. are existing entries. Upon failure, the database may not be in a consistent state. Clearing is recommended.
adapterId | The adapterId. This is required. |
userId | The userId. This can be empty. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0