Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
Settings used by ProtectionEngine during its creation and throughout its lifetime. More...
#include <src/api/mip/protection/protection_engine.h>
Public Member Functions | |
MIP_API void | AddRmsCapability (const std::string &capability) |
Add a capability which will be passed along to RMS when fetching usage rights. | |
bool | GetAllowCloudServiceOnly () const |
Gets whether or not only cloud service is allowed. | |
std::shared_ptr< AuthDelegate > | GetAuthDelegate () const |
Get the Engine Auth Delegate. | |
const std::string & | GetClientData () const |
Gets custom data specified by client. | |
Cloud | GetCloud () const |
Gets the target cloud used by all service requests. | |
const std::string & | GetCloudEndpointBaseUrl () const |
Gets the cloud base URL used by all service requests, if specified. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Gets name/value pairs used for testing and experimentation. | |
DataBoundary | GetDataBoundary () const |
Gets the data boundary region. | |
const std::string & | GetEngineId () const |
Gets the engine ID. | |
const Identity & | GetIdentity () const |
Gets the user Identity associated with the engine. | |
const std::string & | GetLocale () const |
Gets the locale in which engine data will be written. | |
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. | |
std::vector< std::string > | GetRmsCapabilities () const |
The the full set of client capabilities supported when fetching usage rights from RMS. | |
const std::string & | GetSessionId () const |
Gets the engine session ID. | |
int | GetTemplateBatchSize () const |
Gets the number of templates to be requested in each batch during GetTemplates. | |
std::chrono::hours | GetTemplateRefreshInterval () const |
Gets the refresh rate of the protection templates. | |
const std::string & | GetUnderlyingApplicationId () const |
Gets the Underlying Application ID. | |
MIP_API bool | RemoveRmsCapability (const std::string &capability) |
Remove one of the added usage rights capabilities which get passed to RMS. | |
void | SetAllowCloudServiceOnly (bool allowCloudServiceOnly) |
Sets whether or not only cloud service is allowed. | |
void | SetAuthDelegate (const std::shared_ptr< AuthDelegate > &authDelegate) |
Set the Engine Auth Delegate. | |
void | SetClientData (const std::string &clientData) |
Sets custom data specified by client. | |
void | SetCloud (Cloud cloud) |
Optionally sets the target cloud. | |
void | SetCloudEndpointBaseUrl (const std::string &cloudEndpointBaseUrl) |
Sets the cloud endpoint base URL for custom cloud. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &value) |
Sets name/value pairs used for testing and experimentation. | |
void | SetDataBoundary (DataBoundary dataBoundary) |
Optionally sets the target diagnostic region. | |
void | SetEngineId (const std::string &engineId) |
Sets the engine ID. | |
void | SetIdentity (const Identity &identity) |
Sets the user Identity associated with the 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. | |
void | SetSessionId (const std::string &sessionId) |
Sets the engine session ID, used for correlation of logging/telemetry. | |
void | SetTemplateRefreshArgs (std::chrono::hours templateRefreshRateHours, int templateBatchSize=kMaxTemplateBatchNum) |
Sets a custom refresh rate for templates. | |
Settings (const Identity &identity, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="") | |
ProtectionEngine::Settings constructor for creating a new engine. | |
Settings (const std::string &engineId, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="") | |
ProtectionEngine::Settings constructor for loading an existing engine. | |
void | SetUnderlyingApplicationId (const std::string &underlyingApplicationId) |
Sets the Underlying Application ID. | |
Settings used by ProtectionEngine during its creation and throughout its lifetime.
Definition at line 309 of file protection_engine.h.
|
inline |
ProtectionEngine::Settings constructor for creating a new engine.
identity | Identity that will be associated with ProtectionEngine |
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 and can be retrieved from a loaded engine. |
locale | Engine output will be provided in this locale. |
Definition at line 322 of file protection_engine.h.
|
inline |
ProtectionEngine::Settings constructor for loading an existing engine.
engineId | Unique identifier of engine that will be loaded |
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 and can be retrieved from a loaded engine. |
locale | Engine output will be provided in this locale. |
Definition at line 350 of file protection_engine.h.
MIP_API void ProtectionEngine::Settings::AddRmsCapability | ( | const std::string & | capability | ) |
Add a capability which will be passed along to RMS when fetching usage rights.
capability | The header representing a capability that RMS should support |
|
inline |
Gets whether or not only cloud service is allowed.
Definition at line 544 of file protection_engine.h.
|
inline |
Get the Engine Auth Delegate.
Definition at line 523 of file protection_engine.h.
|
inline |
Gets custom data specified by client.
Definition at line 400 of file protection_engine.h.
|
inline |
Gets the target cloud used by all service requests.
Definition at line 465 of file protection_engine.h.
|
inline |
Gets the cloud base URL used by all service requests, if specified.
Definition at line 505 of file protection_engine.h.
|
inline |
Gets name/value pairs used for testing and experimentation.
Definition at line 428 of file protection_engine.h.
|
inline |
Gets the data boundary region.
Definition at line 485 of file protection_engine.h.
|
inline |
Gets the engine ID.
Definition at line 372 of file protection_engine.h.
|
inline |
Gets the user Identity associated with the engine.
Definition at line 386 of file protection_engine.h.
|
inline |
Gets the locale in which engine data will be written.
Definition at line 414 of file protection_engine.h.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
Definition at line 619 of file protection_engine.h.
|
inline |
The the full set of client capabilities supported when fetching usage rights from RMS.
Definition at line 611 of file protection_engine.h.
|
inline |
Gets the engine session ID.
Definition at line 444 of file protection_engine.h.
|
inline |
Gets the number of templates to be requested in each batch during GetTemplates.
Definition at line 567 of file protection_engine.h.
|
inline |
Gets the refresh rate of the protection templates.
Definition at line 560 of file protection_engine.h.
|
inline |
Gets the Underlying Application ID.
Definition at line 530 of file protection_engine.h.
MIP_API bool ProtectionEngine::Settings::RemoveRmsCapability | ( | const std::string & | capability | ) |
Remove one of the added usage rights capabilities which get passed to RMS.
capability | The capability which should be removed. |
|
inline |
Sets whether or not only cloud service is allowed.
allowCloudServiceOnly | A boolean value indicating whether or not only cloud service is allowed |
Definition at line 551 of file protection_engine.h.
|
inline |
Set the Engine Auth Delegate.
authDelegate | the Auth delegate |
Definition at line 514 of file protection_engine.h.
|
inline |
Sets custom data specified by client.
Custom | data specified by client |
Definition at line 407 of file protection_engine.h.
|
inline |
Optionally sets the target cloud.
Cloud | Cloud |
Definition at line 456 of file protection_engine.h.
|
inline |
Sets the cloud endpoint base URL for custom cloud.
cloudEndpointBaseUrl | the base URL used by all service requests (for example, "https://api.aadrm.com") |
Definition at line 496 of file protection_engine.h.
|
inline |
Sets name/value pairs used for testing and experimentation.
customSettings | Name/value pairs used for testing and experimentation |
Definition at line 421 of file protection_engine.h.
|
inline |
Optionally sets the target diagnostic region.
dataBoundary | Data boundary region |
Definition at line 476 of file protection_engine.h.
|
inline |
Sets the engine ID.
engineId | engine ID. |
Definition at line 379 of file protection_engine.h.
|
inline |
Sets the user Identity associated with the engine.
identity | User Identity associated with the engine |
Definition at line 393 of file protection_engine.h.
|
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 |
Definition at line 628 of file protection_engine.h.
|
inline |
Sets the engine session ID, used for correlation of logging/telemetry.
sessionId | Engine session ID, used for correlation of logging/telemetry |
Definition at line 435 of file protection_engine.h.
|
inline |
Sets a custom refresh rate for templates.
templateRefreshRateHours | How often to allow use of cached templates for protection. will always refresh by default. If hours are less than 0 will throw exception. |
templateBatchSize | If offline protection is enabled, how many template data responses are carried in a single request during fetching. Between 1 and 25. |
Definition at line 582 of file protection_engine.h.
|
inline |
Sets the Underlying Application ID.
UnderlyingApplicationId | Underlying Application ID. |
Definition at line 537 of file protection_engine.h.