Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
|
This file contains the PolicyProfile class which includes the PolicyProfile::Observer and the PolicyProfile::Settings classes. More...
#include <memory>
#include <string>
#include <vector>
#include "mip/common_types.h"
#include "mip/error.h"
#include "mip/http_delegate.h"
#include "mip/logger_delegate.h"
#include "mip/mip_context.h"
#include "mip/mip_export.h"
#include "mip/mip_namespace.h"
#include "mip/task_dispatcher_delegate.h"
#include "mip/upe/policy_engine.h"
Go to the source code of this file.
Functions | |
static MIP_API std::shared_ptr< AsyncControl > __CDECL | LoadAsync (const Settings &settings, const std::shared_ptr< void > &context) |
Starts loading a profile based on the provided settings. | |
static MIP_API std::shared_ptr< PolicyProfile > __CDECL | Load (const Settings &settings) |
Loading a profile based on the provided settings. | |
static MIP_API const char *__CDECL | GetVersion () |
Get the library version. | |
virtual const Settings & | GetSettings () const =0 |
Get the settings set on the profile. | |
virtual std::shared_ptr< AsyncControl > | ListEnginesAsync (const std::shared_ptr< void > &context)=0 |
Starts list engines operation. | |
virtual std::vector< std::string > | ListEngines ()=0 |
List of engines. | |
virtual std::shared_ptr< AsyncControl > | UnloadEngineAsync (const std::string &id, const std::shared_ptr< void > &context)=0 |
Starts unloading the policy engine with the given ID. | |
virtual void | UnloadEngine (const std::string &id)=0 |
Starts unloading the policy engine with the given ID. | |
virtual std::shared_ptr< AsyncControl > | AddEngineAsync (const PolicyEngine::Settings &settings, const std::shared_ptr< void > &context)=0 |
Starts adding a new policy engine to the profile. | |
virtual std::shared_ptr< PolicyEngine > | AddEngine (const PolicyEngine::Settings &settings, const std::shared_ptr< void > &context)=0 |
Add a new policy engine to the profile. | |
virtual std::shared_ptr< AsyncControl > | DeleteEngineAsync (const std::string &id, const std::shared_ptr< void > &context)=0 |
Starts deleting the policy engine with the given ID. All data for the given profile will be deleted. | |
virtual void | DeleteEngine (const std::string &engineId)=0 |
Delete the policy engine with the given ID. All data for the given engine will be deleted. | |
virtual void | AcquireAuthToken (Cloud cloud, const std::shared_ptr< AuthDelegate > &authDelegate) const =0 |
Trigger an authentication callback. | |
virtual void | AcquireAuthToken (const std::string &domainInfo, const std::shared_ptr< AuthDelegate > &authDelegate) const =0 |
Trigger an authentication callback. | |
This file contains the PolicyProfile class which includes the PolicyProfile::Observer and the PolicyProfile::Settings classes.
|
pure virtual |
Trigger an authentication callback.
cloud | Azure cloud |
authDelegate | Authentication callback that will be invoked |
|
pure virtual |
Trigger an authentication callback.
string | Domain info which can be a domain name or a domain GUID |
authDelegate | Authentication callback that will be invoked |
|
pure virtual |
Add a new policy engine to the profile.
settings | the mip::PolicyEngine::Settings object that specifies the engine's settings. |
context | a parameter that will be forwarded opaquely to the optional HttpDelegate |
|
pure virtual |
Starts adding a new policy engine to the profile.
settings | the mip::PolicyEngine::Settings object that specifies the engine's settings. |
context | a parameter that will be forwarded opaquely to the observer functions and optional HttpDelegate. |
|
pure virtual |
Delete the policy engine with the given ID. All data for the given engine will be deleted.
id | the unique engine ID. |
|
pure virtual |
Starts deleting the policy engine with the given ID. All data for the given profile will be deleted.
id | the unique engine ID. |
context | a parameter that will be passed into the observer functions. |
|
pure virtual |
Get the settings set on the profile.
|
static |
Get the library version.
|
pure virtual |
List of engines.
|
pure virtual |
Starts list engines operation.
context | a parameter that will be passed into the observer functions. |
|
static |
Loading a profile based on the provided settings.
settings | Settings used by PolicyProfile during its initialization and throughout its lifetime |
|
static |
Starts loading a profile based on the provided settings.
settings | the profile settings used to load the profile object. |
context | a context parameter that will be passed into the observer functions. |
|
pure virtual |
Starts unloading the policy engine with the given ID.
id | the unique engine ID. |
|
pure virtual |
Starts unloading the policy engine with the given ID.
id | the unique engine ID. |
context | a parameter that will be forwarded opaquely to the observer functions. |