OMA::Download::DRM::REL - Perl extension for packing REL objects according to the OMA DRM 1.0 specification.
Open Mobile Alliance Digital Rights Management Rights Expression Language implementation
This is a partial implementation - Needs to be completed
# $class can be OMA::Download::DRM::REL::XML or OMA::Download::DRM::REL::WBXML my $rel=$class->new( ### Mandatory 'uid' => 'cid:image239872@example.com', 'permission' => 'display', # Can be either 'display', 'play', 'execute' or 'print' ### Optional 'key' => 'im9aazbjfgsorehf', 'count' => 3 );
Returns the unique identifier
print $rel->uid;
Get or set permission type. Can be either 'display', 'play', 'execute' or 'print'
print $rel->permission; $rel->permission('display');
Get or set the encryption key
print $rel->key; $rel->key('0123456789ABCDEF');
Get or set accesses count limit
print $rel->count; $rel->count(3);
Use more than one permission, and other constraints than count
* OMA-Download-REL-V1_0-20040615-A
* OMA::Download::DRM::REL::XML
* OMA::Download::DRM::REL::WBXML
Bernard Nauwelaerts, <bpn@localhost>
Copyright (C) 2006 by Bernard Nauwelaerts.
Released under the GPL.
To install OMA::Download::DRM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OMA::Download::DRM
CPAN shell
perl -MCPAN -e shell install OMA::Download::DRM
For more information on module installation, please visit the detailed CPAN module installation guide.