Build 1.0_r1(from source)

android.drm.mobile1
Class DrmRightsManager

java.lang.Object
  extended by android.drm.mobile1.DrmRightsManager

public class DrmRightsManager
extends Object

This class provides interfaces to access the DRM right manager.


Field Summary
static String DRM_MIMETYPE_RIGHTS_WBXML_STRING
          The "application/vnd.oma.drm.rights+wbxml" mime type.
static String DRM_MIMETYPE_RIGHTS_XML_STRING
          The "application/vnd.oma.drm.rights+xml" mime type.
 
Constructor Summary
protected DrmRightsManager()
          Construct a DrmRightsManager
 
Method Summary
 void deleteRights(DrmRights rights)
          Delete the specified DRM rights object.
static DrmRightsManager getInstance()
          Get the DrmRightsManager instance.
 List getRightsList()
          Get the list of all DRM rights saved in local client.
 DrmRights installRights(InputStream rightsData, int len, String mimeTypeStr)
          Install one DRM rights and return one instance of DrmRights.
 DrmRights queryRights(DrmRawContent content)
          Query DRM rights of specified DRM raw content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRM_MIMETYPE_RIGHTS_XML_STRING

public static final String DRM_MIMETYPE_RIGHTS_XML_STRING
The "application/vnd.oma.drm.rights+xml" mime type.

See Also:
Constant Field Values

DRM_MIMETYPE_RIGHTS_WBXML_STRING

public static final String DRM_MIMETYPE_RIGHTS_WBXML_STRING
The "application/vnd.oma.drm.rights+wbxml" mime type.

See Also:
Constant Field Values
Constructor Detail

DrmRightsManager

protected DrmRightsManager()
Construct a DrmRightsManager

Method Detail

getInstance

public static DrmRightsManager getInstance()
Get the DrmRightsManager instance.

Returns:
the instance of DrmRightsManager.

installRights

public DrmRights installRights(InputStream rightsData,
                               int len,
                               String mimeTypeStr)
                        throws DrmException,
                               IOException
Install one DRM rights and return one instance of DrmRights.

Parameters:
rightsData - raw rights data.
mimeTypeStr - the mime type of the rights object.
Returns:
the instance of the installed DrmRights.
Throws:
DrmException
IOException

queryRights

public DrmRights queryRights(DrmRawContent content)
Query DRM rights of specified DRM raw content.

Parameters:
content - raw content object.
Returns:
the instance of DrmRights, or null if there is no rights.

getRightsList

public List getRightsList()
Get the list of all DRM rights saved in local client.

Returns:
the list of all the rights object.

deleteRights

public void deleteRights(DrmRights rights)
Delete the specified DRM rights object.

Parameters:
rights - the specified rights object to be deleted.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature