SYNOPSIS

  use DRM::SD;
  $sd = DRM::SD->decode($content);

DESCRIPTION

The DRM::SD class allows you to encrypt or decrypt DRM Separate Delivery files. It relies on DRM::RightObject for access to Right Objects.

The following methods are available:

DRM::SD->decode( [$content] )

Construct a new DRM::SD and optionaly initialise its value from a binary string.

$sd->encode

Return the binary string representing a DRM::SD object.

$sd->get_content($key)

Decrypt an SD file's content and return the clear data. The 128bit key to use for decryption must be provided.

$sd->set_content($ro, $clear)

Set an SD file's data from the clear data. The 128bit key to use for encryption must be provided.

$oldvalue = $sd->content_type( [$newvalue] )

Get or set a DRM SD file's Content-Type.

$oldvalue = $sd->content_uri( [$newvalue] )

Get or set a DRM SD file's Content-URI.

$oldvalue = $sd->headers( [$newvalue] )

Get or set a DRM SD file's headers.

$oldvalue = $sd->version( [$newvalue] )

Get or set a DRM SD file's Version.

$sd->info

Return a string containing information about a DRM SD file.

Copyright

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