|
Oracle Application Server Wireless Java API Reference B10400-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.
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 |
static java.util.Properties |
getProperties(org.w3c.dom.Document odrl) Internal: The method is not exported API and may not be supported in future. |
static java.lang.String |
getValueOf(java.lang.String uri, java.lang.String localNodeName, org.w3c.dom.Document odrl) Internal: The method is not exported API and may not be supported in future. |
void |
init(java.util.Properties prop) Initializes the DRMPackager class with the custom properties |
static void |
main(java.lang.String[] argv) Deprecated. the method is no-op and only provided for binary compatibility |
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 static DRMPackager getInstance()
J2MEDRMPackager
referencepublic void init(java.util.Properties prop)
init
in interface DRMPackager
prop
- Properties Initialization Propertiespublic java.util.Properties getInitPropertiesDef()
getInitPropertiesDef
in interface DRMPackager
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 DRMPackager
content
- 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 java.util.Properties getProperties(org.w3c.dom.Document odrl)
Converts values of an ODRL document into Properties
Properties
values of an ODRL document in a map.public static java.lang.String getValueOf(java.lang.String uri, java.lang.String localNodeName, org.w3c.dom.Document odrl)
Returns the value of a named node with specified namespace and ODRL document
String
values of the named elementpublic 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
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |