16 #ifndef ACSDKAUTHORIZATION_LWA_LWAAUTHORIZATIONSTORAGE_H_ 17 #define ACSDKAUTHORIZATION_LWA_LWAAUTHORIZATIONSTORAGE_H_ 31 namespace acsdkAuthorization {
56 static std::shared_ptr<LWAAuthorizationStorageInterface>
createStorage(
57 const std::shared_ptr<propertiesInterfaces::PropertiesFactoryInterface>& propertiesFactory);
77 static std::shared_ptr<acsdkAuthorizationInterfaces::lwa::LWAAuthorizationStorageInterface>
79 const std::shared_ptr<avsCommon::utils::configuration::ConfigurationNode>& configurationRoot,
81 const std::shared_ptr<cryptoInterfaces::CryptoFactoryInterface>& cryptoFactory,
82 const std::shared_ptr<cryptoInterfaces::KeyStoreInterface>& keyStore);
99 bool clear()
override;
114 static std::shared_ptr<storage::sqliteStorage::SQLiteMiscStorage> createSQLiteStorage(
115 const std::shared_ptr<avsCommon::utils::configuration::ConfigurationNode>& configurationRoot,
130 static bool createStorageFileAndSetPermissions(
const std::string& filepath) noexcept;
136 const std::shared_ptr<alexaClientSDK::propertiesInterfaces::PropertiesFactoryInterface>& propertiesFactory);
139 std::shared_ptr<alexaClientSDK::propertiesInterfaces::PropertiesFactoryInterface> m_propertiesFactory;
142 std::shared_ptr<alexaClientSDK::propertiesInterfaces::PropertiesInterface> m_properties;
152 #endif // ACSDKAUTHORIZATION_LWA_LWAAUTHORIZATIONSTORAGE_H_
bool openOrCreate() override
bool clearRefreshToken() override
::std::string string
Definition: gtest-port.h:1097
A SQLite based version of LWAAuthorizationStorageInterface.
Definition: LWAAuthorizationStorage.h:44
~LWAAuthorizationStorage()
bool getRefreshToken(std::string *refreshToken) override
friend class LWAAuthorizationStorageTestHelper
Friend class for member access.
Definition: LWAAuthorizationStorage.h:145
bool setUserId(const std::string &userId) override
bool getUserId(std::string *userId) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::shared_ptr< LWAAuthorizationStorageInterface > createStorage(const std::shared_ptr< propertiesInterfaces::PropertiesFactoryInterface > &propertiesFactory)
Create storage interface.
bool createDatabase() override
static std::shared_ptr< acsdkAuthorizationInterfaces::lwa::LWAAuthorizationStorageInterface > createLWAAuthorizationStorageInterface(const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationRoot, const std::string &storageRootKey, const std::shared_ptr< cryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const std::shared_ptr< cryptoInterfaces::KeyStoreInterface > &keyStore)
Create storage interface backed by SQLite.
Definition: LWAAuthorizationStorageInterface.h:31
bool setRefreshToken(const std::string &refreshToken) override