|
|||||||||
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.MediaEncrypter com.adobe.flashaccess.sdk.media.drm.format.f4v.F4VEncrypter
public class F4VEncrypter
Encrypter for F4V content.
Field Summary | |
---|---|
static java.lang.String |
MEDIA_TYPE
Identifier for F4V media. |
static int |
WARN_CHANGED_TO_HIGH_ENCRYPTION
WarningMessage code indicating
that Medium encryption could not be used, because insufficient data would be protected. |
static int |
WARN_CHANGED_TO_MEDIUM_ENCRYPTION
WarningMessage code indicating
that Low encryption could not be used, because insufficient data would be protected. |
static int |
WARN_EXTERNAL_DATA
WarningMessage code indicating that the
F4V file references external data, which will not be encrypted. |
static int |
WARN_METADATA
WarningMessage code indicating
that the F4V file contains metadata, which will not be encrypted. |
static int |
WARN_MOVIE_FRAGMENTS
WarningMessage code indicating that the
F4V file contains movie fragments, which are not supported by F4VEncrypter . |
static int |
WARN_PARTIAL_ENCRYPTION_NOT_SUPPORTED
WarningMessage code indicating
that Low or Medium encryption could not be used, because it is not supported for
the type of video contained in the file. |
static java.lang.String |
WARN_SOURCE
Source used for WarningMessage objects
originating from F4VEncrypter . |
static int |
WARN_UNRECOGNIZED_TRACKS
WarningMessage code indicating the
F4V contains tracks that are not recognized by F4VEncrypter . |
Constructor Summary | |
---|---|
F4VEncrypter()
Creates a MediaEncrypter for F4V content. |
Method Summary | |
---|---|
F4VDRMParameters |
createEncrypterParameters()
Create parameters for specifying F4V encryption options. |
F4VEncrypterResult |
encryptContent(java.io.File in,
java.io.File out,
DRMParameters params)
Encrypts the content in the specified file. |
KeyMetaData |
examineEncryptedContent(java.io.File in)
Examines content that has already been encrypted by the MediaEncrypter and returns
information about the key used to protect the content. |
Methods inherited from class com.adobe.flashaccess.sdk.media.drm.MediaEncrypter |
---|
createKeyParameters, createSignatureParameters, getMediaType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WARN_SOURCE
WarningMessage
objects
originating from F4VEncrypter
.
public static final int WARN_UNRECOGNIZED_TRACKS
WarningMessage
code indicating the
F4V contains tracks that are not recognized by F4VEncrypter
.
Data in these tracks will not be encrypted.
public static final int WARN_EXTERNAL_DATA
WarningMessage
code indicating that the
F4V file references external data, which will not be encrypted.
public static final int WARN_MOVIE_FRAGMENTS
WarningMessage
code indicating that the
F4V file contains movie fragments, which are not supported by F4VEncrypter
.
Data in movie fragments will not be encrypted, and references inside those fragments may become invalid.
public static final int WARN_METADATA
WarningMessage
code indicating
that the F4V file contains metadata, which will not be encrypted.
public static final int WARN_CHANGED_TO_MEDIUM_ENCRYPTION
WarningMessage
code indicating
that Low encryption could not be used, because insufficient data would be protected.
The encryption level was changed to Medium partway through the file.
public static final int WARN_CHANGED_TO_HIGH_ENCRYPTION
WarningMessage
code indicating
that Medium encryption could not be used, because insufficient data would be protected.
The encryption level was changed to High partway through the file.
public static final int WARN_PARTIAL_ENCRYPTION_NOT_SUPPORTED
WarningMessage
code indicating
that Low or Medium encryption could not be used, because it is not supported for
the type of video contained in the file.
public static final java.lang.String MEDIA_TYPE
Constructor Detail |
---|
public F4VEncrypter()
MediaEncrypter
for F4V content.
Method Detail |
---|
public F4VDRMParameters createEncrypterParameters()
createEncrypterParameters
in class MediaEncrypter
public F4VEncrypterResult encryptContent(java.io.File in, java.io.File out, DRMParameters params) throws KeyRetrievalException, java.io.IOException, ServerCredentialException
IllegalArgumentException
will be thrown. This method will attempt to lock the destination file before writing
any data; if the file cannot be locked because another process is editing it,
an IOException
will be thrown.
If the destination file already exists, the contents will be overwritten.
If an error occurs, the destination file may be invalid, so the caller should delete it.
encryptContent
in class MediaEncrypter
in
- The file containing the content to be encrypted.out
- The file to which to write encrypted content.params
- The encryption options.
ServerCredentialException
KeyRetrievalException
java.io.IOException
java.lang.IllegalArgumentException
- if the parameters are not F4VDRMParameters
.MediaEncrypter.encryptContent(File, File, DRMParameters)
public KeyMetaData examineEncryptedContent(java.io.File in) throws java.io.IOException
MediaEncrypter
and returns
information about the key used to protect the content.
examineEncryptedContent
in class MediaEncrypter
in
- The file containing the content to be encrypted.
null
if no key information was found.
java.io.IOException
MediaEncrypter.examineEncryptedContent(File)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |