|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.wireless.me.server.tools.drm.J2MEDRMPackager
J2MEDRMPackager provides implementation of DRMPackager to package a J2ME application (content) with the DRM policy. <p/>
Custom Packagers may extend this class for modifying the default behaviour as long as the general contract of DRMPackager is satisfied by providing a static factory method, getInstance()
| Method Summary | |
java.util.Properties |
getInitPropertiesDef()Get the list of the init properties this DRMPackager class requires along with the default values |
static DRMPackager |
getInstance()Returns J2MEDRMPackager reference |
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. |
static org.w3c.dom.Document |
replaceCID(org.w3c.dom.Document doc, java.lang.String cid)Internal: The method is not exported API and may not be supported in future. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.util.Properties getInitPropertiesDef()
getInitPropertiesDef in interface DRMPackagerpublic static DRMPackager getInstance()
J2MEDRMPackager referencepublic void init(java.util.Properties prop)
init in interface DRMPackagerprop - Properties Initialization Properties
public byte[] packageDRMContent(byte[] content,
java.util.Properties policyProperties,
org.w3c.dom.Document odrlXml,
UserDevice device)
throws PanamaException
setDRMAgentInfo(String, String) method.packageDRMContent in interface DRMPackagercontent - byte[] the content to be packagedpolicyProperties - Properties the init propertiesodrlXml - Document the digital rights expressed in ODRL formatdevice - UserDevice the user device this content is being delivered toPanamaException#setDRMAgentInfo(String, String)
public static org.w3c.dom.Document replaceCID(org.w3c.dom.Document doc,
java.lang.String cid)
throws java.lang.Exception
Replaces the the value of CID in specified document
String the modified documentjava.lang.Exception
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||