Class HlsContentProtection
- java.lang.Object
-
- software.amazon.awssdk.services.elastictranscoder.model.HlsContentProtection
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HlsContentProtection.Builder,HlsContentProtection>
@Generated("software.amazon.awssdk:codegen") public final class HlsContentProtection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HlsContentProtection.Builder,HlsContentProtection>
The HLS content protection settings, if any, that you want Elastic Transcoder to apply to your output files.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHlsContentProtection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HlsContentProtection.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinitializationVector()If Elastic Transcoder is generating your key for you, you must leave this field blank.Stringkey()If you want Elastic Transcoder to generate a key for you, leave this field blank.StringkeyMd5()If Elastic Transcoder is generating your key for you, you must leave this field blank.StringkeyStoragePolicy()Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket.StringlicenseAcquisitionUrl()The location of the license key required to decrypt your HLS playlist.Stringmethod()The content protection method for your output.List<SdkField<?>>sdkFields()static Class<? extends HlsContentProtection.Builder>serializableBuilderClass()HlsContentProtection.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
method
public final String method()
The content protection method for your output. The only valid value is:
aes-128.This value is written into the method attribute of the
EXT-X-KEYmetadata tag in the output playlist.- Returns:
- The content protection method for your output. The only valid value is:
aes-128.This value is written into the method attribute of the
EXT-X-KEYmetadata tag in the output playlist.
-
key
public final String 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:
- 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.
-
keyMd5
public final String 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:
- 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.
-
initializationVector
public final String 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:
- 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.
-
licenseAcquisitionUrl
public final String 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:
- 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.
-
keyStoragePolicy
public final String keyStoragePolicy()
Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose
WithVariantPlaylists,LicenseAcquisitionUrlmust 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,LicenseAcquisitionUrlmust be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.
-
toBuilder
public HlsContentProtection.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HlsContentProtection.Builder,HlsContentProtection>
-
builder
public static HlsContentProtection.Builder builder()
-
serializableBuilderClass
public static Class<? extends HlsContentProtection.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-