NAME

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

SYNOPSIS

    use OMA::Download::DRM::CF;
	
    my $cf = OMA::Download::DRM::CF->new(
        
        ### Mandatory
        'key'                 => 'im9aazbjfgsorehf',
        'data'                => \$data,
        'content-type'        => 'image/jpeg',
        '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',
    );
    
    my $res = $cf->packit;

DESCRIPTION

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

Properties

key - 128-bit ASCII encryption key
data - Reference to the binary content data
content_type - Content MIME type
content_uri - Content URI
header - Get or set a header
mime - Returns the formatted content MIME type
extension - Returns the formatted content file extension

METHODS

packit - Formats the content object

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, IT Development Belgium

Released under the GPL.