Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
This class provides an interface for all engine functions. More...
#include <src/api/mip/upe/policy_engine.h>
Classes | |
class | Settings |
Defines the settings associated with a PolicyEngine. More... | |
Public Member Functions | |
virtual std::shared_ptr< PolicyHandler > | CreatePolicyHandler (bool isAuditDiscoveryEnabled, bool isGetSensitivityLabelAuditDiscoveryEnabled=true)=0 |
Create a Policy Handler to execute policy-related functions on a file's execution state. | |
virtual const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const =0 |
Gets a list of custom settings. | |
virtual const std::shared_ptr< Label > | GetDefaultSensitivityLabel (const std::string &contentFormat=std::string()) const =0 |
Get the default sensitivity label according to the provided contentFormat. | |
virtual std::shared_ptr< Label > | GetLabelById (const std::string &id) const =0 |
Gets the label according to the provided id. | |
virtual std::chrono::time_point< std::chrono::system_clock > | GetLastPolicyFetchTime () const =0 |
Gets the time when the policy was last fetched. | |
virtual const std::string & | GetMoreInfoUrl () const =0 |
Provide a url for looking up more information about the policy/labels. | |
virtual const std::string & | GetPolicyDataXml () const =0 |
Gets policy data XML which describes the settings, labels, and rules associated with this policy. | |
virtual const std::string & | GetPolicyFileId () const =0 |
Gets the policy file ID. | |
virtual const std::string & | GetSensitivityFileId () const =0 |
Gets the sensitivity file ID. | |
virtual const std::string & | GetSensitivityTypesDataXml () const =0 |
Gets sensitivity types data XML which describes the sensitivity types associated with this policy. | |
virtual const Settings & | GetSettings () const =0 |
Get the policy engine Settings. | |
virtual const std::string & | GetTenantId () const =0 |
Gets tenant ID associated with engine. | |
virtual uint32_t | GetWxpMetadataVersion () const =0 |
Gets the recommended WXP (Word, Excel, Powerpoint) metadata version, currently 0 for old verion 1 for co-authoring enabled version. | |
virtual bool | HasClassificationRules (const std::vector< std::string > &contentFormats=std::vector< std::string >()) const =0 |
Gets if the policy has automatic or recommendation rules according to the provided contentFormats. | |
virtual bool | HasWorkloadConsent (Workload workload) const =0 |
Checks if user has consented to specific workload,. | |
virtual bool | IsDowngradeJustificationRequired () const =0 |
Checks if the policy dictates that given a label sensitivity level downgrade requires a justification message. | |
virtual bool | IsLabelingRequired (const std::string &contentFormat=std::string()) const =0 |
Checks if the policy dictates that a content must be labeled or not according to the provided contentFormat. | |
virtual const std::vector< std::shared_ptr< Label > > | ListSensitivityLabels (const std::vector< std::string > &contentFormats=std::vector< std::string >())=0 |
list the sensitivity labels associated with the policy engine according to the provided contentFormats. | |
virtual const std::vector< std::shared_ptr< SensitivityTypesRulePackage > > & | ListSensitivityTypes () const =0 |
list the sensitivity types associated with the policy engine. | |
virtual void | SendApplicationAuditEvent (const std::string &level, const std::string &eventType, const std::string &eventData)=0 |
Logs an application specific event to the audit pipeline. | |
This class provides an interface for all engine functions.
Definition at line 55 of file policy_engine.h.
|
pure virtual |
Create a Policy Handler to execute policy-related functions on a file's execution state.
isAuditDiscoveryEnabled | Describes whether audit discovery is enabled or not. |
|
pure virtual |
Gets a list of custom settings.
|
pure virtual |
Get the default sensitivity label according to the provided contentFormat.
contentFormat | The format to filter by when retrieving the default sensitivity label - example: "file", "email", etc. Set contentFormat to an empty string to retrieve the default sensitivity label for the default format. |
|
pure virtual |
|
pure virtual |
Gets the time when the policy was last fetched.
|
pure virtual |
Provide a url for looking up more information about the policy/labels.
|
pure virtual |
Gets policy data XML which describes the settings, labels, and rules associated with this policy.
|
pure virtual |
Gets the policy file ID.
|
pure virtual |
Gets the sensitivity file ID.
|
pure virtual |
Gets sensitivity types data XML which describes the sensitivity types associated with this policy.
|
pure virtual |
|
pure virtual |
Gets tenant ID associated with engine.
|
pure virtual |
Gets the recommended WXP (Word, Excel, Powerpoint) metadata version, currently 0 for old verion 1 for co-authoring enabled version.
|
pure virtual |
Gets if the policy has automatic or recommendation rules according to the provided contentFormats.
contentFormat | Vector of formats to consider when determining if a rule is defined for any provided format. Set contentFormats to an empty vector indicates the provided contentFormats are default formats. |
|
pure virtual |
Checks if user has consented to specific workload,.
|
pure virtual |
Checks if the policy dictates that given a label sensitivity level downgrade requires a justification message.
|
pure virtual |
Checks if the policy dictates that a content must be labeled or not according to the provided contentFormat.
contentFormat | The format to filter by when determining whether a label is required - example: "file", "email", etc. Set contentFormat to an empty string to determine whether labeling is required for the default format. |
|
pure virtual |
list the sensitivity labels associated with the policy engine according to the provided contentFormats.
contentFormats | contentFormats Vector of formats to filter the sensitivity labels by, such as "file", "email", etc. Set contentFormats to an empty vector to filter the sensitivity labels by the default formats. |
|
pure virtual |
list the sensitivity types associated with the policy engine.
|
pure virtual |
Logs an application specific event to the audit pipeline.
level | of the log level: Info/Error/Warning. |
eventType | a description of the type of event. |
eventData | the data associated with the event. |