|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.flashaccess.sdk.media.drm.keys.ContentEncryptionKey
public class ContentEncryptionKey
Used to specify an encryption key to use to encrypt content.
Constructor Summary | |
---|---|
ContentEncryptionKey(byte[] cek,
java.lang.String licenseID,
java.util.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 |
java.lang.String |
getLicenseId()
Retrieves the license identifier associated with this key. |
java.util.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 |
---|
public ContentEncryptionKey(byte[] cek, java.lang.String licenseID, java.util.Date packagingDate)
ContentEncryptionKey
instance with the specified
key and license ID.
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 |
---|
public java.lang.String getLicenseId()
public byte[] getKey()
public java.util.Date getPackagingDate()
public static ContentEncryptionKey generate()
ContentEncryptionKey
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |