|
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 | |||||||||
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.
| 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 |
public void init(java.util.Properties prop)
prop - Properties Initialization Propertiespublic java.util.Properties getInitPropertiesDef()
public byte[] packageDRMContent(byte[] content,
java.util.Properties policyProperties,
org.w3c.dom.Document odrlXml,
UserDevice device)
throws PanamaException
content - byte[] the content to be packagedpolicyProperties - Properties the init properties used by the packager classodrlXml - Document the digital rights expressed in ODRL format. null if DRM policy is not specified in ODRL formatdevice - UserDevice the user device this content is being delivered toPanamaException
|
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 | |||||||||