| title | class FileEngine::Settings |
|---|---|
| description | Documents the fileengine::settings class of the Microsoft Information Protection (MIP) SDK. |
| author | msmbaldwin |
| ms.service | information-protection |
| ms.topic | reference |
| ms.author | mbaldwin |
| ms.date | 11/07/2023 |
| Members | Descriptions |
|---|---|
| public Settings(const std::string& engineId, const std::shared_ptr<AuthDelegate>& authDelegate, const std::string& clientData, const std::string& locale, bool loadSensitivityTypes) | FileEngine::Settings constructor for loading an existing engine. |
| public Settings(const Identity& identity, const std::shared_ptr<AuthDelegate>& authDelegate, const std::string& clientData, const std::string& locale, bool loadSensitivityTypes) | FileProfile::Settings constructor for creating a new engine. |
| public const std::string& GetEngineId() const | Returns the engine ID. |
| public void SetEngineId(const std::string& id) | Set the engine ID. |
| public const Identity& GetIdentity() const | Returns the engine Identity. |
| public void SetIdentity(const Identity& identity) | Sets the engine identity. |
| public const std::string& GetClientData() const | Returns the engine client data. |
| public const std::string& GetLocale() const | Return the engine locale. |
| public void SetCustomSettings(const std::vector<std::pair<std::string, std::string>>& value) | Sets a list of name/value pairs used for testing and experimentation. |
| public const std::vector<std::pair<std::string, std::string>>& GetCustomSettings() const | Gets a list of name/value pairs used for testing and experimentation. |
| public void SetSessionId(const std::string& sessionId) | Sets the engine session ID. |
| public const std::string& GetSessionId() const | Return the engine session ID. |
| public void SetCloud(Cloud cloud) | Optionally sets the target cloud. |
| public Cloud GetCloud() const | Gets the target cloud used by all service requests. |
| public void SetDataBoundary(DataBoundary dataBoundary) | Optionally sets the target diagnostic region. |
| public DataBoundary GetDataBoundary() const | Gets the data boundary region. |
| public void SetProtectionCloudEndpointBaseUrl(const std::string& protectionCloudEndpointBaseUrl) | Sets the protection cloud endpoint base URL for custom cloud. |
| public const std::string& GetProtectionCloudEndpointBaseUrl() const | Gets the protection cloud endpoint base url. |
| public void SetPolicyCloudEndpointBaseUrl(const std::string& policyCloudEndpointBaseUrl) | Sets the policy cloud endpoint base URL for custom cloud. |
| public const std::string& GetPolicyCloudEndpointBaseUrl() const | Gets the policy cloud endpoint base url. |
| public void SetProtectionOnlyEngine(bool protectionOnly) | Sets protection only engine indicator - no policy/label. |
| public const bool IsProtectionOnlyEngine() const | Return protection only engine indicator - no policy/label. |
| public bool IsLoadSensitivityTypesEnabled() const | Get the the flag indicating if load sensitivity labels is enabled. |
| public void EnablePFile(bool value) | Sets the flag indicating if produce PFiles. |
| public const bool IsPFileEnabled() | Get the flag indicating if produce PFiles. |
| public void SetDelegatedUserEmail(const std::string& delegatedUserEmail) | Sets the delegated user. |
| public const std::string& GetDelegatedUserEmail() const | Gets the delegated user. |
| public void SetLabelFilter(const std::vector<LabelFilterType>& deprecatedLabelFilters) | Sets the label filter. |
| public const std::vector<LabelFilterType>& GetLabelFilter() const | Gets the label filters set through deprecated function SetLabelFilter. |
| public void ConfigureFunctionality(FunctionalityFilterType functionalityFilterType, bool enabled) | Enables or disables functionality. |
| public const std::map<FunctionalityFilterType, bool>& GetConfiguredFunctionality() const | Gets the configured functionality. |
| public void SetAuthDelegate(const std::shared_ptr<AuthDelegate>& authDelegate) | Set the Engine Auth Delegate. |
| public std::shared_ptr<AuthDelegate> GetAuthDelegate() const | Get the Engine Auth Delegate. |
| public 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. |
| public 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. |
FileEngine::Settings constructor for loading an existing engine.
Parameters:
-
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.
FileProfile::Settings constructor for creating a new engine.
Parameters:
-
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.
Returns the engine ID.
Set the engine ID.
Parameters:
- id: engine ID.
Returns the engine Identity.
Sets the engine identity.
Returns the engine client data.
Return the engine locale.
Sets a list of name/value pairs used for testing and experimentation.
Gets a list of name/value pairs used for testing and experimentation.
Sets the engine session ID.
Return the engine session ID.
Optionally sets the target cloud.
Parameters:
- cloud: Cloud
If cloud is not specified, then it will default to global cloud.
Gets the target cloud used by all service requests.
Returns: Cloud
Optionally sets the target diagnostic region.
Parameters:
- dataBoundary: Data boundary region
If dataBoundary is not specified, then it will default to global diagnostic region.
Gets the data boundary region.
Returns: DataBoundary
Sets the protection cloud endpoint base URL for custom cloud.
Parameters:
- protectionCloudEndpointBaseUrl: Base url associated with protection endpoints
This value will only be read and must be set for Cloud = Custom
Gets the protection cloud endpoint base url.
Returns: Base url associated with protection endpoints This value will only be read and must be set for Cloud = Custom
Sets the policy cloud endpoint base URL for custom cloud.
Parameters:
- policyCloudEndpointBaseUrl: Base url associated with policy endpoints
Gets the policy cloud endpoint base url.
Returns: Base url associated with policy endpoints
Sets protection only engine indicator - no policy/label.
Return protection only engine indicator - no policy/label.
Get the the flag indicating if load sensitivity labels is enabled.
Returns: True if enabled else false.
Sets the flag indicating if produce PFiles.
Get the flag indicating if produce PFiles.
Returns: True if enabled else false.
Sets the delegated user.
Parameters:
- delegatedUserEmail: the delegation email.
A delegated user is specified when the authenticating user/application is acting on behalf of another user
Gets the delegated user.
Returns: Delegated user A delegated user is specified when the authenticating user/application is acting on behalf of another user
Sets the label filter.
Parameters:
- labelFilter: the label filter.
Labels are by default filter to scope, this api is to allow filtering by possible actions. If not set HyokProtection and DoubleKeyProtection are filtered.
Gets the label filters set through deprecated function SetLabelFilter.
Returns: The label filter. Labels are by default filter to scope, this api is to allow filtering by possible actions.
Enables or disables functionality.
Parameters:
-
functionalityFilterType: the type of functionality.
-
enabled: True to enable, false to disable
HyokProtection, DoubleKeyProtection, DoubleKeyUserDefinedProtection are disabled by default and must be enabled
Gets the configured functionality.
Returns: A map of the types to a boolean value indicating whether or not it is enabled
Set the Engine Auth Delegate.
Parameters:
- authDelegate: the Auth delegate
Get the Engine Auth Delegate.
Returns: The Engine Auth Delegate.
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
Returns: The logger context
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
Parameters:
- loggerContext: The logger context