|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
#include <mip/file/file_engine.h>
Public Member Functions | |
| 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. | |
| 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. | |
| const std::string & | GetEngineId () const |
| Returns the engine ID. | |
| void | SetEngineId (const std::string &id) |
| Set the engine ID. | |
| const Identity & | GetIdentity () const |
| Returns the engine Identity. | |
| void | SetIdentity (const Identity &identity) |
| Sets the engine identity. | |
| const std::string & | GetClientData () const |
| Returns the engine client data. | |
| const std::string & | GetLocale () const |
| Return the engine locale. | |
| void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &value) |
| Sets a list of name/value pairs used for testing and experimentation. | |
| const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
| Gets a list of name/value pairs used for testing and experimentation. | |
| void | SetSessionId (const std::string &sessionId) |
| Sets the engine session ID. | |
| const std::string & | GetSessionId () const |
| Return the engine session ID. | |
| void | SetCloud (Cloud cloud) |
| Optionally sets the target cloud. | |
| Cloud | GetCloud () const |
| Gets the target cloud used by all service requests. | |
| void | SetDataBoundary (DataBoundary dataBoundary) |
| Optionally sets the target diagnostic region. | |
| DataBoundary | GetDataBoundary () const |
| Gets the data boundary region. | |
| void | SetProtectionCloudEndpointBaseUrl (const std::string &protectionCloudEndpointBaseUrl) |
| Sets the protection cloud endpoint base URL for custom cloud. | |
| const std::string & | GetProtectionCloudEndpointBaseUrl () const |
| Gets the protection cloud endpoint base url. | |
| void | SetPolicyCloudEndpointBaseUrl (const std::string &policyCloudEndpointBaseUrl) |
| Sets the policy cloud endpoint base URL for custom cloud. | |
| const std::string & | GetPolicyCloudEndpointBaseUrl () const |
| Gets the policy cloud endpoint base url. | |
| void | SetProtectionOnlyEngine (bool protectionOnly) |
| Sets protection only engine indicator - no policy/label. | |
| const bool | IsProtectionOnlyEngine () const |
| Return protection only engine indicator - no policy/label. | |
| bool | IsLoadSensitivityTypesEnabled () const |
| Get the the flag indicating if load sensitivity labels is enabled. | |
| void | EnablePFile (bool value) |
| Sets the flag indicating if produce PFiles. | |
| const bool | IsPFileEnabled () |
| Get the flag indicating if produce PFiles. | |
| void | SetDelegatedUserEmail (const std::string &delegatedUserEmail) |
| Sets the delegated user. | |
| const std::string & | GetDelegatedUserEmail () const |
| Gets the delegated user. | |
| void | SetLabelFilter (const std::vector< LabelFilterType > &deprecatedLabelFilters) |
| Sets the label filter. | |
| const std::vector< LabelFilterType > & | GetLabelFilter () const |
| Gets the label filters set through deprecated function SetLabelFilter. | |
| void | ConfigureFunctionality (FunctionalityFilterType functionalityFilterType, bool enabled) |
| Enables or disables functionality. | |
| const std::map< FunctionalityFilterType, bool > & | GetConfiguredFunctionality () const |
| Gets the configured functionality. | |
| void | SetAuthDelegate (const std::shared_ptr< AuthDelegate > &authDelegate) |
| Set the Engine Auth Delegate. | |
| std::shared_ptr< AuthDelegate > | GetAuthDelegate () const |
| Get the Engine Auth Delegate. | |
| 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. | |
| 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. | |
Private Attributes | |
| std::string | mEngineId |
| Identity | mIdentity |
| Cloud | mCloud = Cloud::Unknown |
| DataBoundary | mDataBoundary = DataBoundary::Default |
| std::shared_ptr< AuthDelegate > | mAuthDelegate |
| std::string | mClientData |
| std::vector< std::pair< std::string, std::string > > | mCustomSettings |
| std::vector< LabelFilterType > | mDeprecatedLabelFilters |
| std::map< FunctionalityFilterType, bool > | mConfiguredFunctionality |
| std::string | mProtectionCloudEndpointBaseUrl |
| std::string | mPolicyCloudEndpointBaseUrl |
| std::string | mLocale |
| std::string | mSessionId |
| bool | mProtectionOnlyEngine = false |
| bool | mIsLoadSensitivityTypesEnabled |
| bool | mEnablePFile = true |
| std::string | mDelegatedUserEmail |
| std::shared_ptr< void > | mLoggerContext |
|
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. |
|
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. |
|
inline |
Enables or disables functionality.
| functionalityFilterType | the type of functionality. |
| enabled | True to enable, false to disable |
|
inline |
Sets the flag indicating if produce PFiles.
|
inline |
Get the Engine Auth Delegate.
|
inline |
Returns the engine client data.
|
inline |
Gets the target cloud used by all service requests.
|
inline |
Gets the configured functionality.
|
inline |
Gets a list of name/value pairs used for testing and experimentation.
|
inline |
Gets the data boundary region.
|
inline |
Gets the delegated user.
|
inline |
Returns the engine ID.
|
inline |
Gets the label filters set through deprecated function SetLabelFilter.
|
inline |
Return the engine locale.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
|
inline |
Gets the policy cloud endpoint base url.
|
inline |
Gets the protection cloud endpoint base url.
|
inline |
Return the engine session ID.
|
inline |
Get the the flag indicating if load sensitivity labels is enabled.
|
inline |
Get the flag indicating if produce PFiles.
|
inline |
Return protection only engine indicator - no policy/label.
|
inline |
Set the Engine Auth Delegate.
| authDelegate | the Auth delegate |
|
inline |
Optionally sets the target cloud.
| cloud | Cloud |
|
inline |
Sets a list of name/value pairs used for testing and experimentation.
|
inline |
Optionally sets the target diagnostic region.
| dataBoundary | Data boundary region |
|
inline |
Sets the delegated user.
| delegatedUserEmail | the delegation email. |
|
inline |
Set the engine ID.
| id | engine ID. |
|
inline |
Sets the engine identity.
|
inline |
Sets the label filter.
| labelFilter | the label filter. |
|
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 |
|
inline |
Sets the policy cloud endpoint base URL for custom cloud.
| policyCloudEndpointBaseUrl | Base url associated with policy endpoints |
|
inline |
Sets the protection cloud endpoint base URL for custom cloud.
| protectionCloudEndpointBaseUrl | Base url associated with protection endpoints |
|
inline |
Sets protection only engine indicator - no policy/label.
|
inline |
Sets the engine session ID.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |