AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AuthorizationManagerInterface.h>
Public Member Functions | |
virtual | ~AuthorizationManagerInterface ()=default |
Destructor. More... | |
virtual void | reportStateChange (const avsCommon::sdkInterfaces::AuthObserverInterface::FullState &state, const std::string &authId, const std::string &userId)=0 |
virtual void | add (const std::shared_ptr< acsdkAuthorizationInterfaces::AuthorizationAdapterInterface > &adapter)=0 |
This non-application facing interfaces manages between multiple authorization mechanisms and ensures that the AVS SDK utilizes a single authorization mode.
|
virtualdefault |
Destructor.
|
pure virtual |
Add an adapter with the AuthorizationManagerInterface
. This must be called before reportStateChange
.
adapter | The authorization adapter. |
|
pure virtual |
Reports the state change. This should be called in accordance with state transitions documented in AuthObserverInterface::State
. UserId may not initially be available in the AUTHORIZING state. The values obtained in REFRESHED will be carried forward for future callbacks for validation purposes.
state | The state. |
authId | The unique auth id. |
userId | The user id associated with this. |
Implemented in alexaClientSDK::acsdkAuthorization::AuthorizationManager.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0