|
|||||||||
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.flv.FLVEncrypter
public class FLVEncrypter
Encrypter for FLV content.
Field Summary | |
---|---|
static java.lang.String |
MEDIA_TYPE
Identifier for FLV media. |
static java.lang.String |
WARN_SOURCE
Source used for WarningMessage instances originating from FLVEncrypter . |
static int |
WARN_UNRECOGNIZED_FLV_TAGS
WarningMessage code indicating the FLV contains tags that are not recognized by FLVEncrypter . |
Constructor Summary | |
---|---|
FLVEncrypter()
Creates a MediaEncrypter for FLV content. |
Method Summary | |
---|---|
FLVDRMParameters |
createEncrypterParameters()
Creates parameters for specifying FLV encryption options. |
FLVEncrypterResult |
encryptContent(java.io.File in,
java.io.File out,
DRMParameters params)
Encrypts the content in the specified file. |
FLVEncrypterResult |
encryptContent(java.io.InputStream in,
java.io.OutputStream 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. |
KeyMetaData |
examineEncryptedContent(java.io.InputStream 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
instances originating from FLVEncrypter
.
public static final int WARN_UNRECOGNIZED_FLV_TAGS
WarningMessage
code indicating the FLV contains tags that are not recognized by FLVEncrypter
.
Data in these tags will not be encrypted.
public static final java.lang.String MEDIA_TYPE
Constructor Detail |
---|
public FLVEncrypter()
MediaEncrypter
for FLV content.
Method Detail |
---|
public FLVDRMParameters createEncrypterParameters()
createEncrypterParameters
in class MediaEncrypter
public FLVEncrypterResult 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 FLVDRMParameters
.MediaEncrypter.encryptContent(File, File, DRMParameters)
public FLVEncrypterResult encryptContent(java.io.InputStream in, java.io.OutputStream out, DRMParameters params) throws KeyRetrievalException, java.io.IOException, ServerCredentialException
If this FLVEncrypter
was obtained by calling MediaEncrypterFactory.getMediaEncrypter()
and you used a wrapper input stream, such as BufferedInputStream
,
use the same wrapper input stream here. Do not use the underlying InputStream
here, as some data will have already been read from the stream by MediaEncrypterFactory.getMediaEncrypter()
.
in
- The file containing the content to be encrypted.out
- The file to which to write encrypted content.params
- Encryption options.
ServerCredentialException
KeyRetrievalException
java.io.IOException
java.lang.IllegalArgumentException
- if the parameters are not FLVDRMParameters
.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)
public KeyMetaData examineEncryptedContent(java.io.InputStream in) throws java.io.IOException
MediaEncrypter
and returns
information about the key used to protect the content.
If this FLVEncrypter
was obtained by calling MediaEncrypterFactory.getMediaEncrypter()
and you used a wrapper input stream, such as BufferedInputStream
,
use the same wrapper input stream here. Do not use the underlying InputStream
here, as some data will have already been read from the stream by MediaEncrypterFactory.getMediaEncrypter()
.
in
- The file containing the content to be encrypted.
null
if no key information was found.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |