Show / Hide Table of Contents

    Class PackageManager.Drm

    Definition

    Namespace:
    Tizen.Applications
    Assembly:
    Tizen.Applications.PackageManager.dll
    API Level:
    3

    Drm nested class. This class has the PackageManager's drm related methods.

    public static class Drm
    Inheritance
    Object
    PackageManager.Drm

    Methods

    View Source

    DecryptPackage(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
    Boolean

    Returns true if succeeds, otherwise false.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when failed when input package ID is invalid.

    OutOfMemoryException

    Thrown when there is not enough memory to continue the execution of the method.

    UnauthorizedAccessException

    Thrown when an application does not have the privilege to access this method.

    SystemException

    Thrown when the method failed due to an internal system error.

    API Level: 3
    Privilege Level: platform
    Privilege: http://tizen.org/privilege/packagemanager.admin
    View Source

    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
    ArgumentException

    Thrown when failed when input package ID is invalid.

    OutOfMemoryException

    Thrown when there is not enough memory to continue the execution of the method.

    UnauthorizedAccessException

    Thrown when an application does not have the privilege to access this method.

    SystemException

    Thrown when the method failed due to an internal system error.

    API Level: 3
    Privilege Level: platform
    Privilege: http://tizen.org/privilege/packagemanager.admin
    View Source

    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
    Boolean

    Returns true if succeeds, otherwise false.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when failed when input package ID is invalid.

    OutOfMemoryException

    Thrown when there is not enough memory to continue the execution of the method.

    UnauthorizedAccessException

    Thrown when an application does not have the privilege to access this method.

    SystemException

    Thrown when the method failed due to internal system error.

    API Level: 3
    Privilege Level: platform
    Privilege: http://tizen.org/privilege/packagemanager.admin
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX