SYNOPSIS

  use DRM::RightObject;
  $ro = DRM::SD->parse_xml($xml);
  $ro = DRM::SD->parse_wbxml($wbxml);
  $key = $ro->key_value;

DESCRIPTION

The DRM::RightObject class allows you to encode or decode DRM Right Objects. This is used by DRM::SD for content encryption and decryption.

The following methods are available:

DRM::RightObject->parse_xml($xml)

Construct a new DRM::RightObect from XML data.

DRM::RightObject->parse_xmlfile($file)

Construct a new DRM::RightObect from an XML file.

DRM::RightObject->parse_wbxml($wbxml)

Construct a new DRM::RightObect from a WBXML data.

This requires the 'wbxml2xml' tool to be present on your system.

DRM::RightObject->parse_wbxmlfile($file)

Construct a new DRM::RightObect from a WBXML file.

This requires the 'wbxml2xml' tool to be present on your system.

$ro->key_value

Returns the Right Object's encrption key.

$ro->uid

Returns the Right Object's <uid> element, the identifier of the DRM content this Right Object applies to.

Copyright

umts-tools is copyright© 2004-2006 Jeremy Lainé. This software is distributed under the terms of the GNU General Public License (GPL).