Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
ProtectionHandler::Observer Class Reference

Interface that receives notifications related to ProtectionHandler. More...

#include <src/api/mip/protection/protection_handler.h>

Public Member Functions

virtual void OnCreateProtectionHandlerFailure (const std::exception_ptr &error, const std::shared_ptr< void > &context)
 Called when ProtectionHandler creation failed.
 
virtual void OnCreateProtectionHandlerSuccess (const std::shared_ptr< ProtectionHandler > &protectionHandler, const std::shared_ptr< void > &context)
 Called when ProtectionHandler was created successfully.
 

Detailed Description

Interface that receives notifications related to ProtectionHandler.

Note
This interface must be implemented by applications using the protection SDK

Definition at line 67 of file protection_handler.h.

Member Function Documentation

◆ OnCreateProtectionHandlerFailure()

virtual void ProtectionHandler::Observer::OnCreateProtectionHandlerFailure ( const std::exception_ptr & error,
const std::shared_ptr< void > & context )
inlinevirtual

Called when ProtectionHandler creation failed.

Parameters
errorFailure that occurred during creation
contextThe same context that was passed to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync
Note
An application can pass any type of context (for example, std::promise, std::function) to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync, and that same context will be forwarded as-is to ProtectionEngine::Observer::OnCreateProtectionHandlerSuccess or ProtectionEngine::Observer::OnCreateProtectionHandlerFailure

Definition at line 99 of file protection_handler.h.

101 { UNUSED(error); UNUSED(context); }

◆ OnCreateProtectionHandlerSuccess()

virtual void ProtectionHandler::Observer::OnCreateProtectionHandlerSuccess ( const std::shared_ptr< ProtectionHandler > & protectionHandler,
const std::shared_ptr< void > & context )
inlinevirtual

Called when ProtectionHandler was created successfully.

Parameters
protectionHandlerThe newly created ProtectionHandler
contextThe same context that was passed to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync
Note
An application can pass any type of context (for example, std::promise, std::function) to ProtectionEngine::CreateProtectionHandlerFromDescriptorAsync or ProtectionEngine::CreateProtectionHandlerFromPublishingLicenseAsync, and that same context will be forwarded as-is to ProtectionEngine::Observer::OnCreateProtectionHandlerSuccess or ProtectionEngine::Observer::OnCreateProtectionHandlerFailure

Definition at line 82 of file protection_handler.h.

84 { UNUSED(protectionHandler); UNUSED(context); };

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