16 #ifndef ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SYSTEM_INCLUDE_SYSTEM_REVOKEAUTHORIZATIONHANDLER_H_ 17 #define ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SYSTEM_INCLUDE_SYSTEM_REVOKEAUTHORIZATIONHANDLER_H_ 22 #include <unordered_set> 29 namespace capabilityAgents {
43 static std::shared_ptr<RevokeAuthorizationHandler>
create(
44 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender);
50 void preHandleDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
51 void handleDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
52 void cancelDirective(std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info)
override;
61 bool addObserver(std::shared_ptr<avsCommon::sdkInterfaces::RevokeAuthorizationObserverInterface> observer);
71 bool removeObserver(std::shared_ptr<avsCommon::sdkInterfaces::RevokeAuthorizationObserverInterface> observer);
80 std::shared_ptr<avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface> exceptionEncounteredSender);
89 void removeDirectiveGracefully(
90 std::shared_ptr<avsCommon::avs::CapabilityAgent::DirectiveInfo> info,
91 bool isFailure =
false,
98 std::unordered_set<std::shared_ptr<avsCommon::sdkInterfaces::RevokeAuthorizationObserverInterface>>
106 #endif // ALEXA_CLIENT_SDK_CAPABILITYAGENTS_SYSTEM_INCLUDE_SYSTEM_REVOKEAUTHORIZATIONHANDLER_H_ Definition: CapabilityAgent.h:47
::std::string string
Definition: gtest-port.h:1097
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::RevokeAuthorizationObserverInterface > observer)
avsCommon::avs::DirectiveHandlerConfiguration getConfiguration() const override
void preHandleDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override
void handleDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override
std::unordered_map< directiveRoutingRule::DirectiveRoutingRule, BlockingPolicy > DirectiveHandlerConfiguration
Definition: DirectiveHandlerConfiguration.h:32
static std::shared_ptr< RevokeAuthorizationHandler > create(std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: RevokeAuthorizationHandler.h:35
bool removeObserver(std::shared_ptr< avsCommon::sdkInterfaces::RevokeAuthorizationObserverInterface > observer)
void cancelDirective(std::shared_ptr< avsCommon::avs::CapabilityAgent::DirectiveInfo > info) override
void handleDirectiveImmediately(std::shared_ptr< avsCommon::avs::AVSDirective > directive) override