NAME

OMA::Download::DRM::CF - Perl extension for formatting content objects according to the OMA DRM 1.0 specification

DESCRIPTION

Packs & encrypts content objects according to the Open Mobile Alliance Digital Rights Management 1.0 specification

SYNOPSIS

use OMA::Download::DRM::CF;

CONSTRUCTOR

new

my $cf = OMA::Download::DRM::CF->new(
    
    ### Mandatory
    'key'                 => '0123456789ABCDEF',
    'data'                => \$data,
    'content-type'        => 'image/gif',
    'content-uri'         => 'cid:image239872@foo.bar',
    'Rights-Issuer'       => 'http://example.com/pics/image239872',
    'Content-Name'        => 'Kilimanjaro Uhuru Peak',
    
    ### Optional
    'Content-Description' => 'Nice image from Kilimanjaro',
    'Content-Vendor'      => 'IT Development Belgium',
    'Icon-URI'            => 'http://example.com/icon.gif',
);

PROPERTIES

key

get or set the 128-bit ASCII encryption key

print $cf->key;

$cf->key('0123456789ABCDEF');

data

Get or set the reference to the binary content data

print ${$cf->data};

$cf->data(\$data);

content_type

Get or set the content MIME type

print $cf->content_type;

$cf->content_type('image/gif');

content_uri

Get or set the content URI

print $cf->content_uri;

$cf->content_type('image12345@example.com');

Get or set a header

print $cf->header('Content-Vendor');

$cf->header('Content-Vendor', 'My Company');

mime

Returns the formatted content MIME type

print $cf->mime;

extension

Returns the formatted content file extension

print $cf->extension;

METHODS

packit

Formats the content object

print $cf->packit;

SEE ALSO

* OMA-Download-CF-V1_0-20040615-A

* WAP-230-WSP-20010705-a

* RFC2760

* Crypt::Rijndael

* RFC2630 6.3

AUTHOR

Bernard Nauwelaerts, <bpgn@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Bernard Nauwelaerts.

Released under the GPL.