public class HlsContentProtection extends Object implements Serializable, Cloneable
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to your output files.
| Constructor and Description | 
|---|
| HlsContentProtection() | 
| Modifier and Type | Method and Description | 
|---|---|
| HlsContentProtection | clone() | 
| boolean | equals(Object obj) | 
| String | getInitializationVector()If Elastic Transcoder is generating your key for you, you must leave
 this field blank. | 
| String | getKey()If you want Elastic Transcoder to generate a key for you, leave this
 field blank. | 
| String | getKeyMd5()If Elastic Transcoder is generating your key for you, you must leave
 this field blank. | 
| String | getKeyStoragePolicy()Specify whether you want Elastic Transcoder to write your HLS license
 key to an Amazon S3 bucket. | 
| String | getLicenseAcquisitionUrl()The location of the license key required to decrypt your HLS playlist. | 
| String | getMethod()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 | setKey(String key)If you want Elastic Transcoder to generate a key for you, leave this
 field blank. | 
| void | setKeyMd5(String keyMd5)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 | setMethod(String method)The content protection method for your output. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| HlsContentProtection | withInitializationVector(String initializationVector)If Elastic Transcoder is generating your key for you, you must leave
 this field blank. | 
| HlsContentProtection | withKey(String key)If you want Elastic Transcoder to generate a key for you, leave this
 field blank. | 
| HlsContentProtection | withKeyMd5(String keyMd5)If Elastic Transcoder is generating your key for you, you must leave
 this field blank. | 
| HlsContentProtection | withKeyStoragePolicy(String keyStoragePolicy)Specify whether you want Elastic Transcoder to write your HLS license
 key to an Amazon S3 bucket. | 
| HlsContentProtection | withLicenseAcquisitionUrl(String licenseAcquisitionUrl)The location of the license key required to decrypt your HLS playlist. | 
| HlsContentProtection | withMethod(String method)The content protection method for your output. | 
public String getMethod()
aes-128. This value will be written into the
 method attribute of the EXT-X-KEY metadata tag in the
 output playlist.
 
 Constraints:
 Pattern: (^aes-128$)
aes-128. This value will be written into the
         method attribute of the EXT-X-KEY metadata tag in the
         output playlist.
public void setMethod(String method)
aes-128. This value will be written into the
 method attribute of the EXT-X-KEY metadata tag in the
 output playlist.
 
 Constraints:
 Pattern: (^aes-128$)
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.
public HlsContentProtection withMethod(String method)
aes-128. This value will be written into the
 method attribute of the EXT-X-KEY metadata tag in the
 output playlist.
 
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: (^aes-128$)
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.
public String getKey()
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, or 256.
 
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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, or 256.
public void setKey(String key)
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, or 256.
 
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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, or 256.
public HlsContentProtection withKey(String key)
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, or 256.
 
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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, or 256.
public String getKeyMd5()
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.
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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.
public void setKeyMd5(String keyMd5)
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.
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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.
public HlsContentProtection withKeyMd5(String keyMd5)
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 a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: ^$|(^(?:[A-Za-z0-9\+/]{4})*(?:[A-Za-z0-9\+/]{2}==|[A-Za-z0-9\+/]{3}=)?$)
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.
public String getInitializationVector()
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.
 Constraints:
 Length: 0 - 255
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.
public void setInitializationVector(String initializationVector)
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.
 Constraints:
 Length: 0 - 255
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.
public HlsContentProtection withInitializationVector(String initializationVector)
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 a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 255
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.
public String getLicenseAcquisitionUrl()
 Constraints:
 Length: 0 - 512
public void setLicenseAcquisitionUrl(String licenseAcquisitionUrl)
 Constraints:
 Length: 0 - 512
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.public HlsContentProtection withLicenseAcquisitionUrl(String licenseAcquisitionUrl)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 512
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.public String getKeyStoragePolicy()
WithVariantPlaylists, LicenseAcquisitionUrl
 must be left blank and Elastic Transcoder writes your data key into
 the same bucket as the associated playlist.
 
 Constraints:
 Pattern: (^NoStore$)|(^WithVariantPlaylists$)
WithVariantPlaylists, LicenseAcquisitionUrl
         must be left blank and Elastic Transcoder writes your data key into
         the same bucket as the associated playlist.public void setKeyStoragePolicy(String keyStoragePolicy)
WithVariantPlaylists, LicenseAcquisitionUrl
 must be left blank and Elastic Transcoder writes your data key into
 the same bucket as the associated playlist.
 
 Constraints:
 Pattern: (^NoStore$)|(^WithVariantPlaylists$)
keyStoragePolicy - 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.public HlsContentProtection withKeyStoragePolicy(String keyStoragePolicy)
WithVariantPlaylists, LicenseAcquisitionUrl
 must be left blank and Elastic Transcoder writes your data key into
 the same bucket as the associated playlist.
 Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: (^NoStore$)|(^WithVariantPlaylists$)
keyStoragePolicy - 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.public String toString()
toString in class ObjectObject.toString()public HlsContentProtection clone()
Copyright © 2015. All rights reserved.