NAME
OMA::Download::DRM::REL - Perl extension for packing REL objects according to the OMA DRM 1.0 specification.
DESCRIPTION
Open Mobile Alliance Digital Rights Management Rights Expression Language implementation
This is a partial implementation - Needs to be completed
CONSTRUCTOR
new
# $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
);
PROPERTIES
uid
Returns the unique identifier
print $rel->uid;
permission
Get or set permission type. Can be either 'display', 'play', 'execute' or 'print'
print $rel->permission;
$rel->permission('display');
key
Get or set the encryption key
print $rel->key;
$rel->key('0123456789ABCDEF');
count
Get or set accesses count limit
print $rel->count;
$rel->count(3);
TODO
Use more than one permission, and other constraints than count
SEE ALSO
* OMA-Download-REL-V1_0-20040615-A
* OMA::Download::DRM::REL::XML
* OMA::Download::DRM::REL::WBXML
AUTHOR
Bernard Nauwelaerts, <bpn@localhost>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Bernard Nauwelaerts.
Released under the GPL.