public static interface Encryption.Builder extends SdkPojo, CopyableBuilder<Encryption.Builder,Encryption>
| Modifier and Type | Method and Description |
|---|---|
Encryption.Builder |
constantInitializationVector(String constantInitializationVector)
A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for
encrypting content.
|
default Encryption.Builder |
encryptionMethod(Consumer<EncryptionMethod.Builder> encryptionMethod)
The encryption method to use.
|
Encryption.Builder |
encryptionMethod(EncryptionMethod encryptionMethod)
The encryption method to use.
|
Encryption.Builder |
keyRotationIntervalSeconds(Integer keyRotationIntervalSeconds)
The frequency (in seconds) of key changes for live workflows, in which content is streamed real time.
|
default Encryption.Builder |
spekeKeyProvider(Consumer<SpekeKeyProvider.Builder> spekeKeyProvider)
The parameters for the SPEKE key provider.
|
Encryption.Builder |
spekeKeyProvider(SpekeKeyProvider spekeKeyProvider)
The parameters for the SPEKE key provider.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEncryption.Builder constantInitializationVector(String constantInitializationVector)
A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
constantInitializationVector - A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key
for encrypting content. If you don't specify a value, then MediaPackage creates the constant
initialization vector (IV).Encryption.Builder encryptionMethod(EncryptionMethod encryptionMethod)
The encryption method to use.
encryptionMethod - The encryption method to use.default Encryption.Builder encryptionMethod(Consumer<EncryptionMethod.Builder> encryptionMethod)
The encryption method to use.
This is a convenience method that creates an instance of theEncryptionMethod.Builder avoiding the
need to create one manually via EncryptionMethod.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to encryptionMethod(EncryptionMethod).
encryptionMethod - a consumer that will call methods on EncryptionMethod.BuilderencryptionMethod(EncryptionMethod)Encryption.Builder keyRotationIntervalSeconds(Integer keyRotationIntervalSeconds)
The frequency (in seconds) of key changes for live workflows, in which content is streamed real time. The service retrieves content keys before the live content begins streaming, and then retrieves them as needed over the lifetime of the workflow. By default, key rotation is set to 300 seconds (5 minutes), the minimum rotation interval, which is equivalent to setting it to 300. If you don't enter an interval, content keys aren't rotated.
The following example setting causes the service to rotate keys every thirty minutes: 1800
keyRotationIntervalSeconds - The frequency (in seconds) of key changes for live workflows, in which content is streamed real time.
The service retrieves content keys before the live content begins streaming, and then retrieves them
as needed over the lifetime of the workflow. By default, key rotation is set to 300 seconds (5
minutes), the minimum rotation interval, which is equivalent to setting it to 300. If you don't enter
an interval, content keys aren't rotated.
The following example setting causes the service to rotate keys every thirty minutes:
1800
Encryption.Builder spekeKeyProvider(SpekeKeyProvider spekeKeyProvider)
The parameters for the SPEKE key provider.
spekeKeyProvider - The parameters for the SPEKE key provider.default Encryption.Builder spekeKeyProvider(Consumer<SpekeKeyProvider.Builder> spekeKeyProvider)
The parameters for the SPEKE key provider.
This is a convenience method that creates an instance of theSpekeKeyProvider.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.BuilderspekeKeyProvider(SpekeKeyProvider)Copyright © 2023. All rights reserved.