com.adobe.flashaccess.sdk.media.drm.format.f4v
Class F4VEncrypter

java.lang.Object
  extended by com.adobe.flashaccess.sdk.media.drm.MediaEncrypter
      extended by com.adobe.flashaccess.sdk.media.drm.format.f4v.F4VEncrypter

public class F4VEncrypter
extends MediaEncrypter

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

WARN_SOURCE

public static final java.lang.String WARN_SOURCE
Source used for WarningMessage objects originating from F4VEncrypter.

See Also:
Constant Field Values

WARN_UNRECOGNIZED_TRACKS

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.

See Also:
Constant Field Values

WARN_EXTERNAL_DATA

public static final int WARN_EXTERNAL_DATA
WarningMessage code indicating that the F4V file references external data, which will not be encrypted.

See Also:
Constant Field Values

WARN_MOVIE_FRAGMENTS

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.

See Also:
Constant Field Values

WARN_METADATA

public static final int WARN_METADATA
WarningMessage code indicating that the F4V file contains metadata, which will not be encrypted.

See Also:
Constant Field Values

WARN_CHANGED_TO_MEDIUM_ENCRYPTION

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.

See Also:
Constant Field Values

WARN_CHANGED_TO_HIGH_ENCRYPTION

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.

See Also:
Constant Field Values

WARN_PARTIAL_ENCRYPTION_NOT_SUPPORTED

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.

See Also:
Constant Field Values

MEDIA_TYPE

public static final java.lang.String MEDIA_TYPE
Identifier for F4V media.

See Also:
Constant Field Values
Constructor Detail

F4VEncrypter

public F4VEncrypter()
Creates a MediaEncrypter for F4V content.

Method Detail

createEncrypterParameters

public F4VDRMParameters createEncrypterParameters()
Create parameters for specifying F4V encryption options.

Specified by:
createEncrypterParameters in class MediaEncrypter
Returns:
Parameters for specifying F4V encryption options.

encryptContent

public F4VEncrypterResult encryptContent(java.io.File in,
                                         java.io.File out,
                                         DRMParameters params)
                                  throws KeyRetrievalException,
                                         java.io.IOException,
                                         ServerCredentialException
Encrypts the content in the specified file. The source and destination must be files, not directories, and they must be different; otherwise an 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.

Specified by:
encryptContent in class MediaEncrypter
Parameters:
in - The file containing the content to be encrypted.
out - The file to which to write encrypted content.
params - The encryption options.
Returns:
An object containing information about the encrypted content.
Throws:
ServerCredentialException
KeyRetrievalException
java.io.IOException
java.lang.IllegalArgumentException - if the parameters are not F4VDRMParameters.
See Also:
MediaEncrypter.encryptContent(File, File, DRMParameters)

examineEncryptedContent

public KeyMetaData examineEncryptedContent(java.io.File in)
                                    throws java.io.IOException
Examines content that has already been encrypted by the MediaEncrypter and returns information about the key used to protect the content.

Specified by:
examineEncryptedContent in class MediaEncrypter
Parameters:
in - The file containing the content to be encrypted.
Returns:
Key information or null if no key information was found.
Throws:
java.io.IOException
See Also:
MediaEncrypter.examineEncryptedContent(File)


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