Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
|
Configuration used by MIP sdk during its creation and throughout its lifetime. More...
#include <mip_configuration.h>
Public Member Functions | |
MipConfiguration (const ApplicationInfo &appInfo, const std::string &path, LogLevel thresholdLogLevel, bool isOfflineOnly) | |
const ApplicationInfo & | GetApplicationInfo () const |
Get the Description of host application. | |
const std::string & | GetPath () const |
Get the File path for logs, caches, etc. | |
const LogLevel & | GetThresholdLogLevel () const |
Get the Minimum log level for .miplog. | |
const bool | isOfflineOnly () const |
whether Network operations is enabled or disabled(not all actions supported when offline) | |
std::shared_ptr< DiagnosticConfiguration > | GetDiagnosticConfiguration () const |
Get the Diagnostic (if any) provided by the application. | |
void | SetDiagnosticConfiguration (const std::shared_ptr< DiagnosticConfiguration > &diagnosticConfiguration) |
Override default configuration of diagnostic. | |
std::shared_ptr< LoggerDelegate > | GetLoggerDelegate () const |
Get the LoggerDelegate (if any) override implementation. | |
void | SetLoggerDelegate (const std::shared_ptr< LoggerDelegate > &loggerDelegate) |
Set the LoggerDelegate (if any) override implementation. | |
std::shared_ptr< LoggerConfiguration > | GetLoggerConfiguration () const |
Get the override configuration (if any) for the default logger implementation. | |
void | SetLoggerConfiguration (const std::shared_ptr< LoggerConfiguration > &loggerConfiguration) |
Override the default logger configuration. | |
std::shared_ptr< StorageDelegate > | GetStorageDelegate () const |
Get the StorageDelegate (if any) override implementation. | |
void | SetStorageDelegate (const std::shared_ptr< StorageDelegate > &storageDelegate) |
Set the StorageDelegate (if any) override implementation. It's a required delegate for MIP Core Context. | |
std::shared_ptr< HttpDelegate > | GetHttpDelegate () const |
Get the HttpDelegate (if any) override implementation. | |
void | SetHttpDelegate (const std::shared_ptr< HttpDelegate > &httpDelegate) |
Set the HttpDelegate (if any) override implementation. It's a required delegate for MIP Core Context. | |
std::shared_ptr< JsonDelegate > | GetJsonDelegate () const |
Get the JsonDelegate (if any) override implementation. | |
std::shared_ptr< xml::XmlDelegate > | GetXmlDelegate () const |
Get the XmlDelegate (if any) override implementation. MipConfiguration needs to be derived from to override the internal xmlDelegate with an alternative. This delegate is only configurable when using the MIP Core Context and only for the protection and upe sdk. | |
std::map< FlightingFeature, bool > | GetFeatureSettings () const |
Get the Flighting features which should be set to non-default values. | |
void | SetFeatureSettings (const std::map< FlightingFeature, bool > &featureSettings) |
Set the Flighting features which should be set to non-default values. | |
size_t | GetApiLogCacheMaxMessages () const |
Get the max messages per Api call that will be logged in the api log cache. | |
void | SetApiLogCacheMaxMessages (size_t maxMessages) |
Set the max messages per Api call that will be logged in the api log cache. Setting this to 0 will disable api log caching. | |
~MipConfiguration () | |
Protected Attributes | |
std::shared_ptr< JsonDelegate > | mJsonDelegate |
std::shared_ptr< xml::XmlDelegate > | mXmlDelegate |
Private Attributes | |
ApplicationInfo | mAppInfo |
std::string | mPath |
LogLevel | mThresholdLogLevel |
bool | mIsOfflineOnly |
std::shared_ptr< LoggerDelegate > | mLoggerDelegate |
std::shared_ptr< DiagnosticConfiguration > | mDiagnosticConfiguration |
std::shared_ptr< StorageDelegate > | mStorageDelegate |
std::map< FlightingFeature, bool > | mfeatureSettings |
size_t | mApiLogCacheMaxMessages |
std::shared_ptr< HttpDelegate > | mHttpDelegate |
std::shared_ptr< LoggerConfiguration > | mLoggerConfiguration |
Configuration used by MIP sdk during its creation and throughout its lifetime.
|
inline |
|
inline |
|
inline |
Get the max messages per Api call that will be logged in the api log cache.
|
inline |
Get the Description of host application.
|
inline |
Get the Diagnostic (if any) provided by the application.
|
inline |
Get the Flighting features which should be set to non-default values.
|
inline |
Get the HttpDelegate (if any) override implementation.
|
inline |
Get the JsonDelegate (if any) override implementation.
|
inline |
Get the override configuration (if any) for the default logger implementation.
|
inline |
Get the LoggerDelegate (if any) override implementation.
|
inline |
Get the File path for logs, caches, etc.
|
inline |
Get the StorageDelegate (if any) override implementation.
|
inline |
Get the Minimum log level for .miplog.
|
inline |
Get the XmlDelegate (if any) override implementation. MipConfiguration needs to be derived from to override the internal xmlDelegate with an alternative. This delegate is only configurable when using the MIP Core Context and only for the protection and upe sdk.
|
inline |
whether Network operations is enabled or disabled(not all actions supported when offline)
|
inline |
Set the max messages per Api call that will be logged in the api log cache. Setting this to 0 will disable api log caching.
maxMessages |
|
inline |
Override default configuration of diagnostic.
diagnosticConfiguration | diagnostic configuration to be used for configuring telemetry/audit. |
|
inline |
Set the Flighting features which should be set to non-default values.
featureSettings | Flighting features to be used. |
|
inline |
Set the HttpDelegate (if any) override implementation. It's a required delegate for MIP Core Context.
httpDelegate | HttpDelegate override implementation |
|
inline |
Override the default logger configuration.
loggerConfiguration | LoggerConfiguration override |
|
inline |
Set the LoggerDelegate (if any) override implementation.
loggerDelegate | LoggerDelegate override implementation |
|
inline |
Set the StorageDelegate (if any) override implementation. It's a required delegate for MIP Core Context.
storageDelegate | StorageDelegate override implementation |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |