Oracle Application Server Wireless Java API Reference
B10400-01

oracle.wireless.me.server.tools.drm
Interface DRMPackager

All Known Implementing Classes:
J2MEDRMPackager

public interface DRMPackager

DRMPackager is an object to package DRM policy with the content. The implementation must follow the static factory pattern by providing the following API.

 public static DRMPackager getInstance() {
   //.....
 }

Every request for packaging would call this factroy method to obtained a reference, followed by call to packageDRMContent(). packageDRMContent() method which should package the content based on the Digital Rights Policy, ODRL document, etc. It is anticipated that some implementations may not specify ODRL definition; others may optionally support ODRL. Such implementations of packageDRMContent() must safeguard aginst the null values of ODRL XML Document.

Version:
1.01
Author:
Sunny W. Sun, Chandra Patni

Method Summary
 java.util.Properties getInitPropertiesDef()
          Get the list of the init properties this DRMPackager class requires along with the default values
 void init(java.util.Properties prop)
          Initializes the DRMPackager class with the custom properties
 byte[] packageDRMContent(byte[] content, java.util.Properties policyProperties, org.w3c.dom.Document odrlXml, UserDevice device)
          Package the content with the Digital Rights information.

 

Method Detail

init

public void init(java.util.Properties prop)
Initializes the DRMPackager class with the custom properties
Parameters:
prop - Properties Initialization Properties

getInitPropertiesDef

public java.util.Properties getInitPropertiesDef()
Get the list of the init properties this DRMPackager class requires along with the default values
Returns:
Properties

packageDRMContent

public byte[] packageDRMContent(byte[] content,
                                java.util.Properties policyProperties,
                                org.w3c.dom.Document odrlXml,
UserDevice device)
                         throws PanamaException
Package the content with the Digital Rights information. The implementation class may need to set the content identifier in this api.
Parameters:
content - byte[] the content to be packaged
policyProperties - Properties the init properties used by the packager class
odrlXml - Document the digital rights expressed in ODRL format. null if DRM policy is not specified in ODRL format
device - UserDevice the user device this content is being delivered to
Returns:
byte[] the new DRM enabled content
PanamaException

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.