ProtectionProfile is the root class for performing protection operations.
More...
#include <protection_profile.h>
|
| static MIP_API std::shared_ptr< AsyncControl > __CDECL | LoadAsync (const Settings &settings, const std::shared_ptr< void > &context) |
| | Starts loading a profile based on the provided settings.
|
| |
| static MIP_API std::shared_ptr< ProtectionProfile > __CDECL | Load (const Settings &settings) |
| | Loading a profile based on the provided settings.
|
| |
| static MIP_API const char *__CDECL | GetVersion () |
| | Gets library version.
|
| |
| static MIP_API std::shared_ptr< PublishingLicenseInfo > __CDECL | GetPublishingLicenseInfo (const std::vector< uint8_t > &serializedPublishingLicense) |
| | Creates a holder for details of a Publishing License and can be used to create a Protection Handler.
|
| |
| static MIP_API std::shared_ptr< PublishingLicenseInfo > __CDECL | GetPublishingLicenseInfo (const std::vector< uint8_t > &serializedPublishingLicense, const std::shared_ptr< MipContext > &mipContext) |
| | Creates a holder for details of a Publishing License and can be used to create a Protection Handler. Allows delegate overrides.
|
| |
ProtectionProfile is the root class for performing protection operations.
- Note
- An application needs to create a ProtectionProfile before performing any protection operations
◆ AddEngine()
Add a new protection engine to the profile.
- Parameters
-
| settings | the mip::ProtectionEngine::Settings object that specifies the engine's settings. |
- Returns
- Newly created ProtectionEngine
◆ AddEngineAsync()
Starts adding a new protection engine to the profile.
- Parameters
-
| settings | the mip::ProtectionEngine::Settings object that specifies the engine's settings. |
| context | Client context that will be opaquely passed back to observers |
- Returns
- Async control object.
- Note
- ProtectionProfile::Observer will be called upon success or failure.
◆ DeleteEngine()
| virtual void ProtectionProfile::DeleteEngine |
( |
const std::string & | engineId | ) |
|
|
pure virtual |
Delete the protection engine with the given ID. All data for the given engine will be deleted.
- Parameters
-
◆ DeleteEngineAsync()
| virtual std::shared_ptr< AsyncControl > ProtectionProfile::DeleteEngineAsync |
( |
const std::string & | engineId, |
|
|
const std::shared_ptr< void > & | context ) |
|
pure virtual |
Starts deleting the protection engine with the given ID. All data for the given engine will be deleted.
- Parameters
-
| id | the unique engine ID. |
| context | Client context that will be opaquely passed back to observers |
- Returns
- Async control object.
- Note
- ProtectionProfile::Observer will be called upon success or failure.
◆ GetPublishingLicenseInfo() [1/2]
| static MIP_API std::shared_ptr< PublishingLicenseInfo > __CDECL ProtectionProfile::GetPublishingLicenseInfo |
( |
const std::vector< uint8_t > & | serializedPublishingLicense | ) |
|
|
static |
Creates a holder for details of a Publishing License and can be used to create a Protection Handler.
- Parameters
-
| serializedPublishingLicense | the serialized publishing license. |
- Returns
- a holder for details of a Publishing License
- Note
- The returned PublishingLicenseInfo is parsed
◆ GetPublishingLicenseInfo() [2/2]
| static MIP_API std::shared_ptr< PublishingLicenseInfo > __CDECL ProtectionProfile::GetPublishingLicenseInfo |
( |
const std::vector< uint8_t > & | serializedPublishingLicense, |
|
|
const std::shared_ptr< MipContext > & | mipContext ) |
|
static |
Creates a holder for details of a Publishing License and can be used to create a Protection Handler. Allows delegate overrides.
- Parameters
-
| serializedPublishingLicense | the serialized publishing license. |
| mipContext | a MIP context containing delegate overrides. |
- Returns
- a holder for details of a Publishing License
- Note
- The returned PublishingLicenseInfo is parsed
◆ GetSettings()
| virtual const Settings & ProtectionProfile::GetSettings |
( |
| ) |
const |
|
pure virtual |
◆ GetVersion()
| static MIP_API const char *__CDECL ProtectionProfile::GetVersion |
( |
| ) |
|
|
static |
Gets library version.
- Returns
- Library version
◆ ListEngines()
| virtual std::vector< std::string > ProtectionProfile::ListEngines |
( |
| ) |
|
|
pure virtual |
List engines.
- Returns
- Cached engine IDs
◆ ListEnginesAsync()
| virtual std::shared_ptr< AsyncControl > ProtectionProfile::ListEnginesAsync |
( |
const std::shared_ptr< void > & | context | ) |
|
|
pure virtual |
Starts list engines operation.
- Parameters
-
| context | Client context that will be opaquely passed back to observers |
- Returns
- Async control object.
- Note
- ProtectionProfile::Observer will be called upon success or failure.
◆ Load()
Loading a profile based on the provided settings.
- Parameters
-
- Returns
- Newly created profile
◆ LoadAsync()
| static MIP_API std::shared_ptr< AsyncControl > __CDECL ProtectionProfile::LoadAsync |
( |
const Settings & | settings, |
|
|
const std::shared_ptr< void > & | context ) |
|
static |
Starts loading a profile based on the provided settings.
- Parameters
-
- Returns
- Async control object.
- Note
- ProtectionProfile::Observer will be called upon success or failure.
The documentation for this class was generated from the following file: