Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
Manages protection-related actions related to a specific identity. More...
#include <src/api/mip/protection/protection_engine.h>
Classes | |
class | Observer |
Interface that receives notifications related to ProtectionEngine. More... | |
class | Settings |
Settings used by ProtectionEngine during its creation and throughout its lifetime. More... | |
Public Member Functions | |
virtual std::vector< std::shared_ptr< DelegationLicense > > | CreateDelegationLicenses (const DelegationLicenseSettings &settings, const std::shared_ptr< void > &context)=0 |
Creates a delegated license. | |
virtual std::shared_ptr< AsyncControl > | CreateDelegationLicensesAsync (const DelegationLicenseSettings &settings, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context)=0 |
Creates a delegated license. | |
virtual std::shared_ptr< ProtectionHandler > | CreateProtectionHandlerForConsumption (const ProtectionHandler::ConsumptionSettings &settings, const std::shared_ptr< void > &context)=0 |
Creates a protection handler where rights/roles are assigned to specific users. | |
virtual std::shared_ptr< AsyncControl > | CreateProtectionHandlerForConsumptionAsync (const ProtectionHandler::ConsumptionSettings &settings, const std::shared_ptr< ProtectionHandler::Observer > &observer, const std::shared_ptr< void > &context)=0 |
Creates a protection handler where rights/roles are assigned to specific users. | |
virtual std::shared_ptr< ProtectionHandler > | CreateProtectionHandlerForPublishing (const ProtectionHandler::PublishingSettings &settings, const std::shared_ptr< void > &context)=0 |
Creates a protection handler where rights/roles are assigned to specific users. | |
virtual std::shared_ptr< AsyncControl > | CreateProtectionHandlerForPublishingAsync (const ProtectionHandler::PublishingSettings &settings, const std::shared_ptr< ProtectionHandler::Observer > &observer, const std::shared_ptr< void > &context)=0 |
Creates a protection handler where rights/roles are assigned to specific users. | |
virtual std::shared_ptr< mip::LicenseInfo > | GetLicenseInfoForLabelId (const std::string &documentId, const std::string &labelId, const std::string &ownerEmail, const std::string &delegatedUserEmail, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Get the collection of properties (including usage rights) associated with a user for a given label ID. | |
virtual std::shared_ptr< LicenseRightsData > | GetLicenseRightsData (const std::vector< uint8_t > &serializedPublishingLicense, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Get the rights data for a license. | |
virtual std::shared_ptr< AsyncControl > | GetLicenseRightsDataAsync (const std::vector< uint8_t > &serializedPublishingLicense, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Get the rights data for a license. | |
virtual std::vector< std::string > | GetRightsForLabelId (const std::string &documentId, const std::string &labelId, const std::string &ownerEmail, const std::string &delegatedUserEmail, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Get collection of rights available to a user for a labelId. | |
virtual std::shared_ptr< AsyncControl > | GetRightsForLabelIdAsync (const std::string &documentId, const std::string &labelId, const std::string &ownerEmail, const std::string &delegatedUserEmail, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Get collection of rights available to a user for a label ID. | |
virtual const Settings & | GetSettings () const =0 |
Gets the engine settings. | |
virtual std::vector< std::shared_ptr< TemplateDescriptor > > | GetTemplates (const std::shared_ptr< void > &context)=0 |
Get collection of templates available to a user. | |
virtual std::vector< std::shared_ptr< TemplateDescriptor > > | GetTemplates (const std::shared_ptr< void > &context, const std::shared_ptr< const GetTemplatesSettings > &templateSettings)=0 |
Get collection of templates available to a user. | |
virtual std::shared_ptr< AsyncControl > | GetTemplatesAsync (const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context)=0 |
Get collection of templates available to a user. | |
virtual std::shared_ptr< AsyncControl > | GetTemplatesAsync (const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const std::shared_ptr< const GetTemplatesSettings > &templateSettings)=0 |
Get collection of templates available to a user. | |
virtual std::shared_ptr< TenantInformation > | GetTenantInformation (const ProtectionCommonSettings &settings, const std::shared_ptr< void > &context)=0 |
Loads user licensor certificate and returns information about the tenant. | |
virtual std::shared_ptr< AsyncControl > | GetTenantInformationAsync (const ProtectionCommonSettings &settings, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context)=0 |
Loads user licensor certificate and returns information about the tenant. | |
virtual bool | IsFeatureSupported (FeatureId featureId)=0 |
Check is feature supported. | |
virtual bool | LoadUserCert (const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
pre-emptively load user licensor certificate, useful when background loading else using prelicense might incurr an additional network call. | |
virtual std::shared_ptr< AsyncControl > | LoadUserCertAsync (const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
pre-emptively load user licensor certificate, useful when background loading else using prelicense might incurr an additional network call. | |
virtual void | RegisterContentForTrackingAndRevocation (const std::vector< uint8_t > &serializedPublishingLicense, const std::string &contentName, bool isOwnerNotificationEnabled, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Register publishing license (PL) for document tracking & revocation. | |
virtual std::shared_ptr< AsyncControl > | RegisterContentForTrackingAndRevocationAsync (const std::vector< uint8_t > &serializedPublishingLicense, const std::string &contentName, bool isOwnerNotificationEnabled, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Register publishing license (PL) for document tracking & revocation. | |
virtual void | RevokeContent (const std::vector< uint8_t > &serializedPublishingLicense, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Perform revocation for content. | |
virtual std::shared_ptr< AsyncControl > | RevokeContentAsync (const std::vector< uint8_t > &serializedPublishingLicense, const std::shared_ptr< ProtectionEngine::Observer > &observer, const std::shared_ptr< void > &context, const ProtectionCommonSettings &settings=ProtectionCommonSettings())=0 |
Perform revocation for content. | |
Manages protection-related actions related to a specific identity.
Definition at line 74 of file protection_engine.h.
|
pure virtual |
Creates a delegated license.
settings | The delegation settings |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Creates a delegated license.
settings | The delegation settings |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Creates a protection handler where rights/roles are assigned to specific users.
settings | Protection settings |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
Creates a protection handler where rights/roles are assigned to specific users.
settings | Protection settings |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Creates a protection handler where rights/roles are assigned to specific users.
settings | Protection settings |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
Creates a protection handler where rights/roles are assigned to specific users.
settings | Protection settings |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Get the collection of properties (including usage rights) associated with a user for a given label ID.
documentId | Document ID associated with the document metadata |
labelId | Label ID associated with the document metadata with which the document created |
ownerEmail | Owner of the document |
delegatedUserEmail | Delegated user is specified when the authenticating user/application is acting on behalf of another user, empty if none |
context | This same context will be forwarded to optional HttpDelegate |
settings | The protection common settings |
|
pure virtual |
Get the rights data for a license.
This method requires the requesting identity to be included in the super user list for your organization. Alternatively, the identity must have been granted VIEWRIGHTSDATA, EDITRIGHTSDATA, or OWNER rights to the content.
serializedPublishingLicense | Serialized publishing license from protected content |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
settings | The common settings |
|
pure virtual |
Get the rights data for a license.
This method requires the requesting identity to be included in the super user list for your organization. Alternatively, the identity must have been granted VIEWRIGHTSDATA, EDITRIGHTSDATA, or OWNER rights to the content.
serializedPublishingLicense | Serialized publishing license from protected content |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
settings | The common settings |
|
pure virtual |
Get collection of rights available to a user for a labelId.
documentId | Document ID associated with the document metadata |
labelId | Label ID associated with the document metadata with which the document created |
ownerEmail | Owner of the document |
delegatedUserEmail | A delegated user is specified when the authenticating user/application is acting on behalf of another user empty if none |
context | This same context will be forwarded to optional HttpDelegate |
|
pure virtual |
Get collection of rights available to a user for a label ID.
documentId | Document ID associated with the document metadata |
labelId | Label ID associated with the document metadata with which the document created |
ownerEmail | owner of the document |
delegatedUserEmail | A delegated user is specified when the authenticating user/application is acting on behalf of another user, empty if none |
observer | A class implementing the ProtectionEngine::Observer interface |
context | This same context will be forwarded to ProtectionEngine::Observer::OnGetRightsForLabelIdSuccess or ProtectionEngine::Observer::OnGetRightsForLabelIdFailure |
|
pure virtual |
Gets the engine settings.
|
pure virtual |
Get collection of templates available to a user.
context | Client context that will be opaquely passed to optional HttpDelegate |
|
pure virtual |
Get collection of templates available to a user.
context | Client context that will be opaquely passed to optional HttpDelegate |
templateSettings | Settings to use when obtaining templates |
|
pure virtual |
Get collection of templates available to a user.
observer | A class implementing the ProtectionEngine::Observer interface |
context | Client context that will be opaquely passed back to observers and optional HttpDelegate |
|
pure virtual |
Get collection of templates available to a user.
observer | A class implementing the ProtectionEngine::Observer interface |
context | Client context that will be opaquely passed back to observers and optional HttpDelegate |
templateSettings | Settings to use when obtaining templates |
|
pure virtual |
Loads user licensor certificate and returns information about the tenant.
settings | The common settings |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
Loads user licensor certificate and returns information about the tenant.
settings | The common settings |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Check is feature supported.
featureId | id of feature to check |
|
pure virtual |
pre-emptively load user licensor certificate, useful when background loading else using prelicense might incurr an additional network call.
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
pre-emptively load user licensor certificate, useful when background loading else using prelicense might incurr an additional network call.
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Register publishing license (PL) for document tracking & revocation.
contentName | The name to associated with the content specified by the serializedPublishingLicense. If the serializedPublishingLicense specifies a content name, that value will take precedence. |
isOwnerNotificationEnabled | Set to true to notify the owner via email whenever the document is decrypted, or false to not send the notification. |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
Register publishing license (PL) for document tracking & revocation.
serializedPublishingLicense | Serialized publishing license from protected content |
contentName | The name to associated with the content specified by the serializedPublishingLicense. If the serializedPublishingLicense specifies a content name, that value will take precedence |
isOwnerNotificationEnabled | Set to true to notify the owner via email whenever the document is decrypted, or false to not send the notification. |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |
|
pure virtual |
Perform revocation for content.
serializedPublishingLicense | Serialized publishing license from protected content |
context | Client context that will be opaquely forwarded to optional HttpDelegate |
|
pure virtual |
Perform revocation for content.
serializedPublishingLicense | Serialized publishing license from protected content |
observer | A class implementing the ProtectionHandler::Observer interface |
context | Client context that will be opaquely forwarded to observers and optional HttpDelegate |