Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
|
Settings used by ProtectionProfile during its creation and throughout its lifetime. More...
#include <protection_profile.h>
Public Member Functions | |
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 (const std::shared_ptr< MipContext > &mipContext, CacheStorageType cacheStorageType, const std::shared_ptr< ConsentDelegate > &consentDelegate) | |
ProtectionProfile::Settings constructor, used for synchronous operations. | |
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. | |
std::shared_ptr< ProtectionProfile::Observer > | GetObserver () const |
Gets the observer that receives notifications of events related to ProtectionProfile. | |
std::shared_ptr< MipContext > | GetMipContext () const |
Get MIP context which represents shared state across all profiles. | |
std::shared_ptr< HttpDelegate > | GetHttpDelegate () const |
Get the HTTP delegate (if any) provided by the application. | |
void | SetHttpDelegate (const std::shared_ptr< HttpDelegate > &httpDelegate) |
Override default HTTP stack with client's own. | |
std::shared_ptr< StorageDelegate > | GetStorageDelegate () const |
Get the StorageDelegate (if any) provided by the application. | |
void | SetStorageDelegate (const std::shared_ptr< StorageDelegate > &storageDelegate) |
Override default storage cache with client's own implementation. | |
std::shared_ptr< TaskDispatcherDelegate > | GetTaskDispatcherDelegate () const |
Get the TaskDispatcher delegate (if any) provided by the application. | |
void | SetTaskDispatcherDelegate (const std::shared_ptr< TaskDispatcherDelegate > &taskDispatcherDelegate) |
Override default asynchonous task dispatching handling with client's own. | |
void | SetSessionId (const std::string &sessionId) |
Sets the session ID. | |
const std::string & | GetSessionId () const |
Gets the session ID. | |
void | SetCanCacheLicenses (bool canCacheLicenses) |
Configures whether or not end user licenses (EULs) will be cached locally. | |
bool | CanCacheLicenses () const |
Gets whether or not end user licenses (EULs) are cached locally. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
Set the custom settings, used for feature gating and testing. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Get the custom settings, used for feature gating and testing. | |
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. | |
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 | AddRedirectionUri (const std::string &originalUri, const std::string &redirectUri) |
Adds a redirect uri. | |
const std::map< std::string, std::string > & | GetRedirectionUris () const |
Gets the redirection uris. | |
DnsRedirection | GetDnsRedirection () const |
Gets the dns redirect mode. | |
void | SetDnsRedirection (DnsRedirection dnsRedirection) |
Sets the dns redirection mode that controls how redirection is handled during online operations. | |
Private Attributes | |
std::shared_ptr< MipContext > | mMipContext |
CacheStorageType | mCacheStorageType |
std::shared_ptr< ConsentDelegate > | mConsentDelegate |
std::shared_ptr< ProtectionProfile::Observer > | mObserver |
std::shared_ptr< HttpDelegate > | mHttpDelegate |
std::shared_ptr< TaskDispatcherDelegate > | mTaskDispatcherDelegate |
std::string | mSessionId |
bool | mCanCacheLicenses = true |
std::vector< std::pair< std::string, std::string > > | mCustomSettings |
std::shared_ptr< void > | mLoggerContext |
std::map< std::string, std::string > | mRedirectionUris |
std::shared_ptr< StorageDelegate > | mStorageDelegate |
DnsRedirection | mDnsRedirection |
Settings used by ProtectionProfile during its creation and throughout its lifetime.
|
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 |
|
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 |
|
inline |
Adds a redirect uri.
originalUri | The uri that should be redirected from |
redirectUri | The uri that will replace the originalUri |
|
inline |
Gets whether or not end user licenses (EULs) are cached locally.
|
inline |
Get whether caches are stored in memory or on disk.
|
inline |
Gets the consent delegate used for connecting to services.
|
inline |
Get the custom settings, used for feature gating and testing.
|
inline |
Gets the dns redirect mode.
|
inline |
Get the HTTP delegate (if any) provided by the application.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created profile.
|
inline |
Get MIP context which represents shared state across all profiles.
|
inline |
Gets the observer that receives notifications of events related to ProtectionProfile.
|
inline |
Gets the redirection uris.
|
inline |
Gets the session ID.
|
inline |
Get the StorageDelegate (if any) provided by the application.
|
inline |
Get the TaskDispatcher delegate (if any) provided by the application.
|
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 |
|
inline |
Set the custom settings, used for feature gating and testing.
customSettings | List of name/value pairs. |
|
inline |
Sets the dns redirection mode that controls how redirection is handled during online operations.
dnsRedirection | The redirection mode to use |
|
inline |
Override default HTTP stack with client's own.
httpDelegate | HTTP callback interface implemented by client application |
|
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 |
|
inline |
Sets the session ID.
sessionId | Session ID that will be used to correlate logs/telemetry |
|
inline |
Override default storage cache with client's own implementation.
storageDelegate | StorageDelegate interface implemented by client application |
|
inline |
Override default asynchonous task dispatching handling with client's own.
taskDispatcherDelegate | Task dispatching callback interface implemented by client application |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |