Class HlsContentProtection
- All Implemented Interfaces:
Serializable
,Cloneable
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to your output files.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
If Elastic Transcoder is generating your key for you, you must leave this field blank.getKey()
If you want Elastic Transcoder to generate a key for you, leave this field blank.If Elastic Transcoder is generating your key for you, you must leave this field blank.Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket.The location of the license key required to decrypt your HLS playlist.The content protection method for your output.int
hashCode()
void
setInitializationVector
(String initializationVector) If Elastic Transcoder is generating your key for you, you must leave this field blank.void
If you want Elastic Transcoder to generate a key for you, leave this field blank.void
If Elastic Transcoder is generating your key for you, you must leave this field blank.void
setKeyStoragePolicy
(String keyStoragePolicy) Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket.void
setLicenseAcquisitionUrl
(String licenseAcquisitionUrl) The location of the license key required to decrypt your HLS playlist.void
The content protection method for your output.toString()
Returns a string representation of this object; useful for testing and debugging.withInitializationVector
(String initializationVector) If Elastic Transcoder is generating your key for you, you must leave this field blank.If you want Elastic Transcoder to generate a key for you, leave this field blank.withKeyMd5
(String keyMd5) If Elastic Transcoder is generating your key for you, you must leave this field blank.withKeyStoragePolicy
(String keyStoragePolicy) Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket.withLicenseAcquisitionUrl
(String licenseAcquisitionUrl) The location of the license key required to decrypt your HLS playlist.withMethod
(String method) The content protection method for your output.
-
Constructor Details
-
HlsContentProtection
public HlsContentProtection()
-
-
Method Details
-
setMethod
The content protection method for your output. The only valid value is:
aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.- Parameters:
method
- The content protection method for your output. The only valid value is:aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.
-
getMethod
The content protection method for your output. The only valid value is:
aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.- Returns:
- The content protection method for your output. The only valid
value is:
aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.
-
withMethod
The content protection method for your output. The only valid value is:
aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.- Parameters:
method
- The content protection method for your output. The only valid value is:aes-128
.This value will be written into the method attribute of the
EXT-X-KEY
metadata tag in the output playlist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKey
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.- Parameters:
key
- If you want Elastic Transcoder to generate a key for you, leave this field blank.If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.
-
getKey
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.- Returns:
- If you want Elastic Transcoder to generate a key for you, leave
this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.
-
withKey
If you want Elastic Transcoder to generate a key for you, leave this field blank.
If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.- Parameters:
key
- If you want Elastic Transcoder to generate a key for you, leave this field blank.If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:
128
,192
, or256
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeyMd5
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
- Parameters:
keyMd5
- If Elastic Transcoder is generating your key for you, you must leave this field blank.The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
-
getKeyMd5
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
- Returns:
- If Elastic Transcoder is generating your key for you, you must
leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
-
withKeyMd5
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
- Parameters:
keyMd5
- If Elastic Transcoder is generating your key for you, you must leave this field blank.The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInitializationVector
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
- Parameters:
initializationVector
- If Elastic Transcoder is generating your key for you, you must leave this field blank.The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
-
getInitializationVector
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
- Returns:
- If Elastic Transcoder is generating your key for you, you must
leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
-
withInitializationVector
If Elastic Transcoder is generating your key for you, you must leave this field blank.
The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
- Parameters:
initializationVector
- If Elastic Transcoder is generating your key for you, you must leave this field blank.The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLicenseAcquisitionUrl
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
- Parameters:
licenseAcquisitionUrl
- The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
-
getLicenseAcquisitionUrl
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
- Returns:
- The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
-
withLicenseAcquisitionUrl
The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.
- Parameters:
licenseAcquisitionUrl
- The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setKeyStoragePolicy
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose
WithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.- Parameters:
keyStoragePolicy
- Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you chooseWithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
-
getKeyStoragePolicy
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose
WithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.- Returns:
- Specify whether you want Elastic Transcoder to write your HLS
license key to an Amazon S3 bucket. If you choose
WithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
-
withKeyStoragePolicy
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose
WithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.- Parameters:
keyStoragePolicy
- Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you chooseWithVariantPlaylists
,LicenseAcquisitionUrl
must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-