AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage Class Reference

#include <SQLiteCBLAuthDelegateStorage.h>

Inheritance diagram for alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage:
Collaboration graph
[legend]

Public Member Functions

 ~SQLiteCBLAuthDelegateStorage ()
 
CBLAuthDelegateStorageInterface method overrides.
bool createDatabase () override
 
bool open () override
 
bool setRefreshToken (const std::string &refreshToken) override
 
bool clearRefreshToken () override
 
bool getRefreshToken (std::string *refreshToken) override
 
bool clear () override
 

Static Public Member Functions

static std::shared_ptr< CBLAuthDelegateStorageInterface > createCBLAuthDelegateStorageInterface (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &configurationRoot, const std::shared_ptr< cryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const std::shared_ptr< cryptoInterfaces::KeyStoreInterface > &keyStore)
 

Detailed Description

An implementation of CBLAuthDelegateStorageInterface using SQLite.

IMPORTANT NOTE: Your token storage MUST be encrypted. Note that in this default SDK implementation, we do not provide encryption.

Constructor & Destructor Documentation

◆ ~SQLiteCBLAuthDelegateStorage()

alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::~SQLiteCBLAuthDelegateStorage ( )

Destructor

Member Function Documentation

◆ clear()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::clear ( )
override

◆ clearRefreshToken()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::clearRefreshToken ( )
override

◆ createCBLAuthDelegateStorageInterface()

static std::shared_ptr<CBLAuthDelegateStorageInterface> alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::createCBLAuthDelegateStorageInterface ( const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &  configurationRoot,
const std::shared_ptr< cryptoInterfaces::CryptoFactoryInterface > &  cryptoFactory,
const std::shared_ptr< cryptoInterfaces::KeyStoreInterface > &  keyStore 
)
static

Factory method for creating a storage object for CBLAuthDelegate based on an SQLite database.

Parameters
configurationRootThe global config object.
cryptoFactoryCrypto factory interface.
keyStoreKey store interface.
Returns
Pointer to the SQLiteCBLAuthDelegate object, nullptr if there's an error creating it.

◆ createDatabase()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::createDatabase ( )
override

◆ getRefreshToken()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::getRefreshToken ( std::string *  refreshToken)
override

◆ open()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::open ( )
override

◆ setRefreshToken()

bool alexaClientSDK::authorization::cblAuthDelegate::SQLiteCBLAuthDelegateStorage::setRefreshToken ( const std::string &  refreshToken)
override

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0