public static interface HlsEncryptionSettings.Builder extends SdkPojo, CopyableBuilder<HlsEncryptionSettings.Builder,HlsEncryptionSettings>
Modifier and Type | Method and Description |
---|---|
HlsEncryptionSettings.Builder |
constantInitializationVector(String constantInitializationVector)
This is a 128-bit, 16-byte hex value represented by a 32-character text string.
|
HlsEncryptionSettings.Builder |
encryptionMethod(HlsEncryptionType encryptionMethod)
Encrypts the segments with the given encryption scheme.
|
HlsEncryptionSettings.Builder |
encryptionMethod(String encryptionMethod)
Encrypts the segments with the given encryption scheme.
|
HlsEncryptionSettings.Builder |
initializationVectorInManifest(HlsInitializationVectorInManifest initializationVectorInManifest)
The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks.
|
HlsEncryptionSettings.Builder |
initializationVectorInManifest(String initializationVectorInManifest)
The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks.
|
HlsEncryptionSettings.Builder |
offlineEncrypted(HlsOfflineEncrypted offlineEncrypted)
Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist.
|
HlsEncryptionSettings.Builder |
offlineEncrypted(String offlineEncrypted)
Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist.
|
default HlsEncryptionSettings.Builder |
spekeKeyProvider(Consumer<SpekeKeyProvider.Builder> spekeKeyProvider)
If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption
with a SPEKE-compliant key provider.
|
HlsEncryptionSettings.Builder |
spekeKeyProvider(SpekeKeyProvider spekeKeyProvider)
If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM encryption
with a SPEKE-compliant key provider.
|
default HlsEncryptionSettings.Builder |
staticKeyProvider(Consumer<StaticKeyProvider.Builder> staticKeyProvider)
Use these settings to set up encryption with a static key provider.
|
HlsEncryptionSettings.Builder |
staticKeyProvider(StaticKeyProvider staticKeyProvider)
Use these settings to set up encryption with a static key provider.
|
HlsEncryptionSettings.Builder |
type(HlsKeyProviderType type)
Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard.
|
HlsEncryptionSettings.Builder |
type(String type)
Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE standard.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
HlsEncryptionSettings.Builder constantInitializationVector(String constantInitializationVector)
constantInitializationVector
- This is a 128-bit, 16-byte hex value represented by a 32-character text string. If this parameter is
not set then the Initialization Vector will follow the segment number by default.HlsEncryptionSettings.Builder encryptionMethod(String encryptionMethod)
encryptionMethod
- Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled'
in the web interface also disables encryption.HlsEncryptionType
,
HlsEncryptionType
HlsEncryptionSettings.Builder encryptionMethod(HlsEncryptionType encryptionMethod)
encryptionMethod
- Encrypts the segments with the given encryption scheme. Leave blank to disable. Selecting 'Disabled'
in the web interface also disables encryption.HlsEncryptionType
,
HlsEncryptionType
HlsEncryptionSettings.Builder initializationVectorInManifest(String initializationVectorInManifest)
initializationVectorInManifest
- The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks.
If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is
not in the manifest.HlsInitializationVectorInManifest
,
HlsInitializationVectorInManifest
HlsEncryptionSettings.Builder initializationVectorInManifest(HlsInitializationVectorInManifest initializationVectorInManifest)
initializationVectorInManifest
- The Initialization Vector is a 128-bit number used in conjunction with the key for encrypting blocks.
If set to INCLUDE, Initialization Vector is listed in the manifest. Otherwise Initialization Vector is
not in the manifest.HlsInitializationVectorInManifest
,
HlsInitializationVectorInManifest
HlsEncryptionSettings.Builder offlineEncrypted(String offlineEncrypted)
offlineEncrypted
- Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for
offline Apple HLS FairPlay content protection.HlsOfflineEncrypted
,
HlsOfflineEncrypted
HlsEncryptionSettings.Builder offlineEncrypted(HlsOfflineEncrypted offlineEncrypted)
offlineEncrypted
- Enable this setting to insert the EXT-X-SESSION-KEY element into the master playlist. This allows for
offline Apple HLS FairPlay content protection.HlsOfflineEncrypted
,
HlsOfflineEncrypted
HlsEncryptionSettings.Builder spekeKeyProvider(SpekeKeyProvider spekeKeyProvider)
spekeKeyProvider
- If your output group type is HLS, DASH, or Microsoft Smooth, use these settings when doing DRM
encryption with a SPEKE-compliant key provider. If your output group type is CMAF, use the
SpekeKeyProviderCmaf settings instead.default HlsEncryptionSettings.Builder spekeKeyProvider(Consumer<SpekeKeyProvider.Builder> spekeKeyProvider)
SpekeKeyProvider.Builder
avoiding the
need to create one manually via SpekeKeyProvider.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to spekeKeyProvider(SpekeKeyProvider)
.spekeKeyProvider
- a consumer that will call methods on SpekeKeyProvider.Builder
spekeKeyProvider(SpekeKeyProvider)
HlsEncryptionSettings.Builder staticKeyProvider(StaticKeyProvider staticKeyProvider)
staticKeyProvider
- Use these settings to set up encryption with a static key provider.default HlsEncryptionSettings.Builder staticKeyProvider(Consumer<StaticKeyProvider.Builder> staticKeyProvider)
StaticKeyProvider.Builder
avoiding the need to create one manually via
StaticKeyProvider.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to staticKeyProvider(StaticKeyProvider)
.staticKeyProvider
- a consumer that will call methods on StaticKeyProvider.Builder
staticKeyProvider(StaticKeyProvider)
HlsEncryptionSettings.Builder type(String type)
type
- Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE
standard. For more information about SPEKE, see
https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.HlsKeyProviderType
,
HlsKeyProviderType
HlsEncryptionSettings.Builder type(HlsKeyProviderType type)
type
- Specify whether your DRM encryption key is static or from a key provider that follows the SPEKE
standard. For more information about SPEKE, see
https://docs.aws.amazon.com/speke/latest/documentation/what-is-speke.html.HlsKeyProviderType
,
HlsKeyProviderType
Copyright © 2021. All rights reserved.