| title | class FileProfile::Settings |
|---|---|
| description | Documents the fileprofile::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 |
Settings used by FileProfile during its creation and throughout its lifetime.
| Members | Descriptions |
|---|---|
| public Settings(const std::shared_ptr<MipContext>& mipContext, CacheStorageType cacheStorageType, std::shared_ptr<ConsentDelegate> consentDelegate, std::shared_ptr<Observer> observer) | FileProfile::Settings constructor. |
| public CacheStorageType GetCacheStorageType() const | Get whether caches are stored in memory or on disk. |
| public std::shared_ptr<ConsentDelegate> GetConsentDelegate() const | Gets the consent delegate used to request user consent connecting to services. |
| public std::shared_ptr<Observer> GetObserver() const | Gets the observer that receives notifications of events related to FileProfile. |
| public std::shared_ptr<MipContext> GetMipContext() const | Get MIP context which represents shared state across all profiles. |
| public std::shared_ptr<HttpDelegate> GetHttpDelegate() const | Get the HTTP delegate (if any) provided by the application. |
| public void SetHttpDelegate(const std::shared_ptr<HttpDelegate>& httpDelegate) | Override default HTTP stack with client's own. |
| public std::shared_ptr<TaskDispatcherDelegate> GetTaskDispatcherDelegate() const | Get the TaskDispatcher delegate (if any) provided by the application. |
| public void SetTaskDispatcherDelegate(const std::shared_ptr<TaskDispatcherDelegate>& taskDispatcherDelegate) | Override default asynchonous task dispatching handling with client's own. |
| public void SetSessionId(const std::string& sessionId) | Sets the session ID. |
| public const std::string& GetSessionId() const | Gets the session ID. |
| public void SetCanCacheLicenses(bool canCacheLicenses) | Configures whether or not end user licenses (EULs) will be cached locally. |
| public bool CanCacheLicenses() const | Gets whether or not end user licenses (EULs) are cached locally. |
| 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 profile. |
| 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 profile. |
| public DnsRedirection GetDnsRedirection() const | Gets the dns redirect mode. |
| public void SetDnsRedirection(DnsRedirection dnsRedirection) | Sets the dns redirection mode that controls how redirection is handled during online operations. |
FileProfile::Settings constructor.
Parameters:
-
mipContext: Global context settings
-
cacheStorageType: Store any cached state in memory or on disk
-
consentDelegate: Delegate used to obtain user permission to access external resources
-
observer: Observer instance that will receive notifications of events related to FileProfile
Get whether caches are stored in memory or on disk.
Returns: Storage type used
Gets the consent delegate used to request user consent connecting to services.
Returns: Consent delegate used for requesting user consent
Gets the observer that receives notifications of events related to FileProfile.
Returns: Observer that receives notifications of events related to FileProfile
Get MIP context which represents shared state across all profiles.
Returns: MIP context
Get the HTTP delegate (if any) provided by the application.
Returns: HTTP delegate to be used for HTTP operations
Override default HTTP stack with client's own.
Parameters:
- httpDelegate: HTTP callback interface implemented by client application
Get the TaskDispatcher delegate (if any) provided by the application.
Returns: TaskDispatcher delegate to be used for executing asynchronous tasks
Override default asynchonous task dispatching handling with client's own.
Parameters:
- taskDispatcherDelegate: Task dispatching callback interface implemented by client application
tasks can reference profile objects preventing its destruction as a result taskdispatcher queues should not be shared.
Sets the session ID.
Parameters:
- sessionId: Session ID that will be used to correlate logs/telemetry
Gets the session ID.
Returns: Session ID that will be used to correlate logs/telemetry
Configures whether or not end user licenses (EULs) will be cached locally.
Parameters:
- canCacheLicenses: Whether or not engine should cache a license when opening protected content
If true, opening protected content will cache the associated license locally. If false, opening protected content will always perform HTTP operation to acquire the license from the RMS service.
Gets whether or not end user licenses (EULs) are cached locally.
Returns: License caching configuration
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
Returns: The logger context
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
Parameters:
- loggerContext: The logger context
Gets the dns redirect mode.
Returns: The redirect mode used
Sets the dns redirection mode that controls how redirection is handled during online operations.
Parameters:
- dnsRedirection: The redirection mode to use