Class PackageManager.Drm
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.PackageManager.dll
Drm nested class. This class has the PackageManager's drm related methods.
public static class PackageManager.Drm
- Inheritance
-
objectPackageManager.Drm
Methods
View SourceDecryptPackage(string, string)
Decrypts the contents which are encrypted.
Declaration
public static bool DecryptPackage(string drmFilePath, string decryptedFilePath)
Parameters
Type | Name | Description |
---|---|---|
string | drmFilePath | Drm file path. |
string | decryptedFilePath | Decrypted file path. |
Returns
Type | Description |
---|---|
bool | Returns true if succeeds, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed when input package ID is invalid. |
System.OutOfMemoryException | Thrown when there is not enough memory to continue the execution of the method. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
System.SystemException | Thrown when the method failed due to an internal system error. |
GenerateLicenseRequest(string)
Generates a request for getting the license.
Declaration
public static PackageDrm GenerateLicenseRequest(string responseData)
Parameters
Type | Name | Description |
---|---|---|
string | responseData | Response data string of the purchase request. |
Returns
Type | Description |
---|---|
PackageDrm | Returns the package DRM information of a given response data which contains the required data and license URL. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed when input package ID is invalid. |
System.OutOfMemoryException | Thrown when there is not enough memory to continue the execution of the method. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
System.SystemException | Thrown when the method failed due to an internal system error. |
RegisterLicense(string)
Registers the encrypted license.
Declaration
public static bool RegisterLicense(string responseData)
Parameters
Type | Name | Description |
---|---|---|
string | responseData | The response data string of the rights request. |
Returns
Type | Description |
---|---|
bool | Returns true if succeeds, otherwise false. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed when input package ID is invalid. |
System.OutOfMemoryException | Thrown when there is not enough memory to continue the execution of the method. |
System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
System.SystemException | Thrown when the method failed due to internal system error. |