com.adobe.flashaccess.sdk.media.drm.keys
Class ContentEncryptionKey

java.lang.Object
  extended by com.adobe.flashaccess.sdk.media.drm.keys.ContentEncryptionKey

public class ContentEncryptionKey
extends Object

Used to specify an encryption key to use to encrypt content.


Constructor Summary
ContentEncryptionKey(byte[] cek, String licenseID, Date packagingDate)
          Create a ContentEncryptionKey instance with the specified key and license ID.
 
Method Summary
static ContentEncryptionKey generate()
          Generate a new encryption key and license ID.
 byte[] getKey()
          Get the content encryption key
 String getLicenseId()
          Retrieves the license identifier associated with this key.
 Date getPackagingDate()
          If any policies specify an expiration date relative to packaging time, the original Packaging date associated with the license ID must be specified for the expiration date to be enforced properly.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentEncryptionKey

public ContentEncryptionKey(byte[] cek,
                            String licenseID,
                            Date packagingDate)
Create a ContentEncryptionKey instance with the specified key and license ID.

Parameters:
cek - content encryption key (must be 16 bytes for this release)
licenseID - Unique identifier for the license. The license ID corresponds to the content encryption key; all content protected with the same key must use the same license ID. It is highly recommended to use ContentEncryptionKey.generate() to generate a unique license ID; if you choose to generate the license ID using some other mechanism, it must be a random identifier, at least 128 bits in length.
packagingDate - If any policies specify an expiration date relative to packaging time, the original Packaging date associated with the license ID must be specified for the expiration date to be enforced properly. Specify the date the first file was packaged with this key and license ID. If no date is specified, the current date is used.
Method Detail

getLicenseId

public String getLicenseId()
Retrieves the license identifier associated with this key. If multiple pieces of content share the same key, they should also have the same license identifier.

Returns:
The license identifier associated with this key.

getKey

public byte[] getKey()
Get the content encryption key

Returns:
encryption key

getPackagingDate

public Date getPackagingDate()
If any policies specify an expiration date relative to packaging time, the original Packaging date associated with the license ID must be specified for the expiration date to be enforced properly.

Returns:
packaging date of the earliest file packaged with this key

generate

public static ContentEncryptionKey generate()
Generate a new encryption key and license ID.

Returns:
new ContentEncryptionKey instance


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