Microsoft Information Protection (MIP) SDK for C++: Reference 1.16
Doxygen-generated documentation for MIP SDK written in C++
|
#include <src/api/mip/file/file_engine.h>
Public Member Functions | |
void | ConfigureFunctionality (FunctionalityFilterType functionalityFilterType, bool enabled) |
Enables or disables functionality. | |
void | EnablePFile (bool value) |
Sets the flag indicating if produce PFiles. | |
std::shared_ptr< AuthDelegate > | GetAuthDelegate () const |
Get the Engine Auth Delegate. | |
const std::string & | GetClientData () const |
Returns the engine client data. | |
Cloud | GetCloud () const |
Gets the target cloud used by all service requests. | |
const std::map< FunctionalityFilterType, bool > & | GetConfiguredFunctionality () const |
Gets the configured functionality. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Gets a list of name/value pairs used for testing and experimentation. | |
DataBoundary | GetDataBoundary () const |
Gets the data boundary region. | |
const std::string & | GetDelegatedUserEmail () const |
Gets the delegated user. | |
const std::string & | GetEngineId () const |
Returns the engine ID. | |
const Identity & | GetIdentity () const |
Returns the engine Identity. | |
const std::vector< LabelFilterType > & | GetLabelFilter () const |
Gets the label filters set through deprecated function SetLabelFilter. | |
const std::string & | GetLocale () const |
Return the engine locale. | |
const std::shared_ptr< void > & | GetLoggerContext () const |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine. | |
const std::string & | GetPolicyCloudEndpointBaseUrl () const |
Gets the policy cloud endpoint base url. | |
const std::string & | GetProtectionCloudEndpointBaseUrl () const |
Gets the protection cloud endpoint base url. | |
const std::string & | GetSessionId () const |
Return the engine session ID. | |
bool | IsLoadSensitivityTypesEnabled () const |
Get the the flag indicating if load sensitivity labels is enabled. | |
const bool | IsPFileEnabled () |
Get the flag indicating if produce PFiles. | |
const bool | IsProtectionOnlyEngine () const |
Return protection only engine indicator - no policy/label. | |
void | SetAuthDelegate (const std::shared_ptr< AuthDelegate > &authDelegate) |
Set the Engine Auth Delegate. | |
void | SetCloud (Cloud cloud) |
Optionally sets the target cloud. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &value) |
Sets a list of name/value pairs used for testing and experimentation. | |
void | SetDataBoundary (DataBoundary dataBoundary) |
Optionally sets the target diagnostic region. | |
void | SetDelegatedUserEmail (const std::string &delegatedUserEmail) |
Sets the delegated user. | |
void | SetEngineId (const std::string &id) |
Set the engine ID. | |
void | SetIdentity (const Identity &identity) |
Sets the engine identity. | |
void | SetLabelFilter (const std::vector< LabelFilterType > &deprecatedLabelFilters) |
Sets the label filter. | |
void | SetLoggerContext (const std::shared_ptr< void > &loggerContext) |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created engine. | |
void | SetPolicyCloudEndpointBaseUrl (const std::string &policyCloudEndpointBaseUrl) |
Sets the policy cloud endpoint base URL for custom cloud. | |
void | SetProtectionCloudEndpointBaseUrl (const std::string &protectionCloudEndpointBaseUrl) |
Sets the protection cloud endpoint base URL for custom cloud. | |
void | SetProtectionOnlyEngine (bool protectionOnly) |
Sets protection only engine indicator - no policy/label. | |
void | SetSessionId (const std::string &sessionId) |
Sets the engine session ID. | |
Settings (const Identity &identity, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="", bool loadSensitivityTypes=false) | |
FileProfile::Settings constructor for creating a new engine. | |
Settings (const std::string &engineId, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="", bool loadSensitivityTypes=false) | |
FileEngine::Settings constructor for loading an existing engine. | |
Definition at line 53 of file file_engine.h.
|
inline |
FileEngine::Settings constructor for loading an existing engine.
engineId | Set it to the unique engine ID generated by AddEngineAsync. |
authDelegate | The authentication delegate used by the SDK to acquire authentication tokens, will override the PolicyProfile::Settings::authDelegate if both provided |
clientData | customizable client data that can be stored with the engine when unloaded, can be retrieved from a loaded engine. |
locale | engine localizable output will be provided in this locale. |
loadSensitivityTypes | Optional flag indicating when the engine is loaded should load also custom sensitivity types, if true OnPolicyChange Observer on the profile will be invoked on updates to custom sensitivity types as well as policy changes. if false ListSensitivityTypes call will always return an empty list. |
Definition at line 68 of file file_engine.h.
|
inline |
FileProfile::Settings constructor for creating a new engine.
identity | Identity info of the user associated with the new engine. |
authDelegate | The authentication delegate used by the SDK to acquire authentication tokens, will override the PolicyProfile::Settings::authDelegate if both provided |
clientData | customizable client data that can be stored with the engine when unloaded, can be retrieved from a loaded engine. |
locale | engine localizable output will be provided in this locale. |
loadSensitivityTypes | Optional flag indicating when the engine is loaded should load also custom sensitivity types, if true OnPolicyChange Observer on the profile will be invoked on updates to custom sensitivity types as well as policy changes. if false ListSensitivityTypes call will always return an empty list. |
Definition at line 97 of file file_engine.h.
|
inline |
Enables or disables functionality.
functionalityFilterType | the type of functionality. |
enabled | True to enable, false to disable |
Definition at line 336 of file file_engine.h.
References None.
|
inline |
Sets the flag indicating if produce PFiles.
Definition at line 275 of file file_engine.h.
|
inline |
Get the Engine Auth Delegate.
Definition at line 368 of file file_engine.h.
|
inline |
Returns the engine client data.
Definition at line 138 of file file_engine.h.
|
inline |
Gets the target cloud used by all service requests.
Definition at line 185 of file file_engine.h.
|
inline |
Gets the configured functionality.
Definition at line 350 of file file_engine.h.
|
inline |
Gets a list of name/value pairs used for testing and experimentation.
Definition at line 153 of file file_engine.h.
|
inline |
Gets the data boundary region.
Definition at line 205 of file file_engine.h.
|
inline |
Gets the delegated user.
Definition at line 304 of file file_engine.h.
|
inline |
|
inline |
|
inline |
Gets the label filters set through deprecated function SetLabelFilter.
Definition at line 326 of file file_engine.h.
|
inline |
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
Definition at line 376 of file file_engine.h.
|
inline |
Gets the policy cloud endpoint base url.
Definition at line 245 of file file_engine.h.
|
inline |
Gets the protection cloud endpoint base url.
Definition at line 227 of file file_engine.h.
|
inline |
Return the engine session ID.
Definition at line 165 of file file_engine.h.
|
inline |
Get the the flag indicating if load sensitivity labels is enabled.
Definition at line 268 of file file_engine.h.
|
inline |
Get the flag indicating if produce PFiles.
Definition at line 284 of file file_engine.h.
|
inline |
Return protection only engine indicator - no policy/label.
Definition at line 259 of file file_engine.h.
|
inline |
Set the Engine Auth Delegate.
authDelegate | the Auth delegate |
Definition at line 359 of file file_engine.h.
|
inline |
Optionally sets the target cloud.
cloud | Cloud |
Definition at line 176 of file file_engine.h.
|
inline |
Sets a list of name/value pairs used for testing and experimentation.
Definition at line 148 of file file_engine.h.
|
inline |
Optionally sets the target diagnostic region.
dataBoundary | Data boundary region |
Definition at line 196 of file file_engine.h.
|
inline |
Sets the delegated user.
delegatedUserEmail | the delegation email. |
Definition at line 295 of file file_engine.h.
|
inline |
Set the engine ID.
id | engine ID. |
Definition at line 123 of file file_engine.h.
|
inline |
Sets the engine identity.
Definition at line 133 of file file_engine.h.
|
inline |
Sets the label filter.
labelFilter | the label filter. |
Definition at line 317 of file file_engine.h.
|
inline |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
loggerContext | The logger context |
Definition at line 384 of file file_engine.h.
|
inline |
Sets the policy cloud endpoint base URL for custom cloud.
policyCloudEndpointBaseUrl | Base url associated with policy endpoints |
Definition at line 236 of file file_engine.h.
|
inline |
Sets the protection cloud endpoint base URL for custom cloud.
protectionCloudEndpointBaseUrl | Base url associated with protection endpoints |
Definition at line 216 of file file_engine.h.
|
inline |
Sets protection only engine indicator - no policy/label.
Definition at line 252 of file file_engine.h.
|
inline |
Sets the engine session ID.
Definition at line 158 of file file_engine.h.