Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
Settings used by ProtectionProfile during its creation and throughout its lifetime. More...
#include <src/api/mip/protection/protection_profile.h>
Public Member Functions | |
void | AddRedirectionUri (const std::string &originalUri, const std::string &redirectUri) |
Adds a redirect uri. | |
bool | CanCacheLicenses () const |
Gets whether or not end user licenses (EULs) are cached locally. | |
CacheStorageType | GetCacheStorageType () const |
Get whether caches are stored in memory or on disk. | |
std::shared_ptr< ConsentDelegate > | GetConsentDelegate () const |
Gets the consent delegate used for connecting to services. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Get the custom settings, used for feature gating and testing. | |
DnsRedirection | GetDnsRedirection () const |
Gets the dns redirect mode. | |
std::shared_ptr< HttpDelegate > | GetHttpDelegate () const |
Get the HTTP delegate (if any) provided by the application. | |
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. | |
std::shared_ptr< MipContext > | GetMipContext () const |
Get MIP context which represents shared state across all profiles. | |
std::shared_ptr< ProtectionProfile::Observer > | GetObserver () const |
Gets the observer that receives notifications of events related to ProtectionProfile. | |
const std::map< std::string, std::string > & | GetRedirectionUris () const |
Gets the redirection uris. | |
const std::string & | GetSessionId () const |
Gets the session ID. | |
std::shared_ptr< StorageDelegate > | GetStorageDelegate () const |
Get the StorageDelegate (if any) provided by the application. | |
std::shared_ptr< TaskDispatcherDelegate > | GetTaskDispatcherDelegate () const |
Get the TaskDispatcher delegate (if any) provided by the application. | |
void | SetCanCacheLicenses (bool canCacheLicenses) |
Configures whether or not end user licenses (EULs) will be cached locally. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
Set the custom settings, used for feature gating and testing. | |
void | SetDnsRedirection (DnsRedirection dnsRedirection) |
Sets the dns redirection mode that controls how redirection is handled during online operations. | |
void | SetHttpDelegate (const std::shared_ptr< HttpDelegate > &httpDelegate) |
Override default HTTP stack with client's own. | |
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. | |
void | SetSessionId (const std::string &sessionId) |
Sets the session ID. | |
void | SetStorageDelegate (const std::shared_ptr< StorageDelegate > &storageDelegate) |
Override default storage cache with client's own implementation. | |
void | SetTaskDispatcherDelegate (const std::shared_ptr< TaskDispatcherDelegate > &taskDispatcherDelegate) |
Override default asynchonous task dispatching handling with client's own. | |
Settings (const std::shared_ptr< MipContext > &mipContext, CacheStorageType cacheStorageType, const std::shared_ptr< ConsentDelegate > &consentDelegate) | |
ProtectionProfile::Settings constructor, used for synchronous operations. | |
Settings (const std::shared_ptr< MipContext > &mipContext, CacheStorageType cacheStorageType, const std::shared_ptr< ConsentDelegate > &consentDelegate, const std::shared_ptr< ProtectionProfile::Observer > &observer) | |
ProtectionProfile::Settings constructor that specifies an observer to be used for async operations. | |
Settings used by ProtectionProfile during its creation and throughout its lifetime.
Definition at line 167 of file protection_profile.h.
|
inline |
ProtectionProfile::Settings constructor that specifies an observer to be used for async operations.
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 ProtectionProfile |
applicationInfo | Info about application that is consuming the protection SDK |
Definition at line 178 of file protection_profile.h.
|
inline |
ProtectionProfile::Settings constructor, used for synchronous operations.
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 |
applicationInfo | Info about application which is consuming the protection SDK |
Definition at line 202 of file protection_profile.h.
|
inline |
Adds a redirect uri.
originalUri | The uri that should be redirected from |
redirectUri | The uri that will replace the originalUri |
Definition at line 371 of file protection_profile.h.
|
inline |
Gets whether or not end user licenses (EULs) are cached locally.
Definition at line 319 of file protection_profile.h.
|
inline |
Get whether caches are stored in memory or on disk.
Definition at line 218 of file protection_profile.h.
|
inline |
Gets the consent delegate used for connecting to services.
Definition at line 225 of file protection_profile.h.
|
inline |
Get the custom settings, used for feature gating and testing.
Definition at line 337 of file protection_profile.h.
|
inline |
Gets the dns redirect mode.
Definition at line 409 of file protection_profile.h.
|
inline |
Get the HTTP delegate (if any) provided by the application.
Definition at line 246 of file protection_profile.h.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
Definition at line 347 of file protection_profile.h.
|
inline |
Get MIP context which represents shared state across all profiles.
Definition at line 239 of file protection_profile.h.
|
inline |
Gets the observer that receives notifications of events related to ProtectionProfile.
Definition at line 232 of file protection_profile.h.
|
inline |
Gets the redirection uris.
Definition at line 380 of file protection_profile.h.
|
inline |
Gets the session ID.
Definition at line 300 of file protection_profile.h.
|
inline |
Get the StorageDelegate (if any) provided by the application.
Definition at line 260 of file protection_profile.h.
|
inline |
Get the TaskDispatcher delegate (if any) provided by the application.
Definition at line 274 of file protection_profile.h.
|
inline |
Configures whether or not end user licenses (EULs) will be cached locally.
canCacheLicenses | Whether or not engine should cache a license when opening protected content |
Definition at line 310 of file protection_profile.h.
|
inline |
Set the custom settings, used for feature gating and testing.
customSettings | List of name/value pairs. |
Definition at line 328 of file protection_profile.h.
|
inline |
Sets the dns redirection mode that controls how redirection is handled during online operations.
dnsRedirection | The redirection mode to use |
Definition at line 418 of file protection_profile.h.
|
inline |
Override default HTTP stack with client's own.
httpDelegate | HTTP callback interface implemented by client application |
Definition at line 253 of file protection_profile.h.
|
inline |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
loggerContext | The logger context |
Definition at line 356 of file protection_profile.h.
|
inline |
Sets the session ID.
sessionId | Session ID that will be used to correlate logs/telemetry |
Definition at line 293 of file protection_profile.h.
|
inline |
Override default storage cache with client's own implementation.
storageDelegate | StorageDelegate interface implemented by client application |
Definition at line 267 of file protection_profile.h.
|
inline |
Override default asynchonous task dispatching handling with client's own.
taskDispatcherDelegate | Task dispatching callback interface implemented by client application |
Definition at line 284 of file protection_profile.h.