AlexaClientSDK  1.26.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::acsdkAssets::common::AuthDelegateMock Class Reference

#include <AuthDelegateMock.h>

Inheritance diagram for alexaClientSDK::acsdkAssets::common::AuthDelegateMock:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkAssets::common::AuthDelegateMock:
Collaboration graph
[legend]

Public Member Functions

 ~AuthDelegateMock () override=default
 
std::string getAuthToken () override
 
void onAuthFailure (const std::string &token) override
 
void addAuthObserver (std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface > observer) override
 
void removeAuthObserver (std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface > observer) override
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface
virtual ~AuthDelegateInterface ()=default
 
virtual void addAuthObserver (std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface > observer)=0
 
virtual void removeAuthObserver (std::shared_ptr< avsCommon::sdkInterfaces::AuthObserverInterface > observer)=0
 

Static Public Member Functions

static std::shared_ptr< AuthDelegateMockcreate ()
 

Detailed Description

Implementation of AuthDelegate that uses MAPLite.

Constructor & Destructor Documentation

◆ ~AuthDelegateMock()

alexaClientSDK::acsdkAssets::common::AuthDelegateMock::~AuthDelegateMock ( )
overridedefault

Member Function Documentation

◆ addAuthObserver()

void alexaClientSDK::acsdkAssets::common::AuthDelegateMock::addAuthObserver ( std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface observer)
override

◆ create()

shared_ptr< AuthDelegateMock > alexaClientSDK::acsdkAssets::common::AuthDelegateMock::create ( )
static

Creates an instance of AuthDelegateInterface to be used with the SDK.

Parameters
setupModeSetup Manager used for communication with OOBE
Returns
a new instance of MAPLiteAuthDelegate is created.

◆ getAuthToken()

string alexaClientSDK::acsdkAssets::common::AuthDelegateMock::getAuthToken ( )
overridevirtual

Get the current LWA authorization token.

Returns
The current authorization token. The returned value will be empty if an authorization token has yet to be acquired or if the most recently acquired token has expired.

Implements alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface.

◆ onAuthFailure()

void alexaClientSDK::acsdkAssets::common::AuthDelegateMock::onAuthFailure ( const std::string &  token)
overridevirtual

Receive notification that an operation using the specified auth token experienced an authorization failure.

Parameters
tokenThe token used to authorize the forbidden operation.

Implements alexaClientSDK::avsCommon::sdkInterfaces::AuthDelegateInterface.

◆ removeAuthObserver()

void alexaClientSDK::acsdkAssets::common::AuthDelegateMock::removeAuthObserver ( std::shared_ptr< alexaClientSDK::avsCommon::sdkInterfaces::AuthObserverInterface observer)
override

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

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