com.adobe.flashaccess.sdk.protocol.license
Class ContentInfo

java.lang.Object
  extended by com.adobe.flashaccess.sdk.protocol.license.ContentInfo

public class ContentInfo
extends java.lang.Object

Information about the content for which a license is requested.


Method Summary
 V2ContentMetaData getContentMetadata()
          Metadata from the encrypted content (generated at packaging time).
 KeyRetrievalInfo getKeyRetrievalInfo()
          Retrieves the key information.
 Policy[] getUpdatedPolicies()
          The server should consult this list of policies when determining which policy to use when generating the license.
 void setKeyRetrievalInfo(KeyRetrievalInfo keyInfo)
          Sets the information required to decrypt the key in the metadata.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentMetadata

public V2ContentMetaData getContentMetadata()
Metadata from the encrypted content (generated at packaging time).

Returns:
The content metadata.

getUpdatedPolicies

public Policy[] getUpdatedPolicies()

The server should consult this list of policies when determining which policy to use when generating the license.

If a PolicyUpdateList was specified in the LicenseHandler, this method returns the updated versions of the policies in the metadata. This list will not include any policies that have been revoked. If there are no updates or no update list was specified, this method will return the same policies as V2ContentMetaData.getPolicies().

Returns:
The updated policies, or an empty array if no valid policies were found (all policies have been revoked).

setKeyRetrievalInfo

public void setKeyRetrievalInfo(KeyRetrievalInfo keyInfo)
Sets the information required to decrypt the key in the metadata. The subclass of KeyRetrievalInfo required depends on the type of KeyProtectionInfo in V2ContentMetaData. The KeyRetrievalInfo must be set before a non-preview leaf license can be generated (not required for preview or root licenses).

Parameters:
keyInfo - The information required to decrypt the key in the metadata. It must not be null.

getKeyRetrievalInfo

public KeyRetrievalInfo getKeyRetrievalInfo()
Retrieves the key information.

Returns:
The key information, or null if it has not yet been set.


[an error occurred while processing this directive] [an error occurred while processing this directive]