Interface SpekeKeyProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpekeKeyProvider.Builder,,SpekeKeyProvider> SdkBuilder<SpekeKeyProvider.Builder,,SpekeKeyProvider> SdkPojo
- Enclosing class:
SpekeKeyProvider
-
Method Summary
Modifier and TypeMethodDescriptioncertificateArn(String certificateArn) The ARN for the certificate that you imported to Amazon Web Services Certificate Manager to add content key encryption to this endpoint.default SpekeKeyProvider.BuildercontentKeyPeriodConfiguration(Consumer<ContentKeyPeriodConfiguration.Builder> contentKeyPeriodConfiguration) The configuration that controls whether MediaPackage signals the start and end times a content key is used for, in theContentKeyPeriodsent to your DRM key provider.contentKeyPeriodConfiguration(ContentKeyPeriodConfiguration contentKeyPeriodConfiguration) The configuration that controls whether MediaPackage signals the start and end times a content key is used for, in theContentKeyPeriodsent to your DRM key provider.drmSystems(Collection<DrmSystem> drmSystems) The DRM solution provider you're using to protect your content during distribution.drmSystems(DrmSystem... drmSystems) The DRM solution provider you're using to protect your content during distribution.drmSystemsWithStrings(String... drmSystems) The DRM solution provider you're using to protect your content during distribution.drmSystemsWithStrings(Collection<String> drmSystems) The DRM solution provider you're using to protect your content during distribution.default SpekeKeyProvider.BuilderencryptionContractConfiguration(Consumer<EncryptionContractConfiguration.Builder> encryptionContractConfiguration) Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.encryptionContractConfiguration(EncryptionContractConfiguration encryptionContractConfiguration) Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.resourceId(String resourceId) The unique identifier for the content.The ARN for the IAM role granted by the key provider that provides access to the key provider API.spekeVersion(String spekeVersion) Specifies the SPEKE version used with your DRM key provider.spekeVersion(SpekeVersion spekeVersion) Specifies the SPEKE version used with your DRM key provider.The URL of the API Gateway proxy that you set up to talk to your key server.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
encryptionContractConfiguration
SpekeKeyProvider.Builder encryptionContractConfiguration(EncryptionContractConfiguration encryptionContractConfiguration) Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.
- Parameters:
encryptionContractConfiguration- Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionContractConfiguration
default SpekeKeyProvider.Builder encryptionContractConfiguration(Consumer<EncryptionContractConfiguration.Builder> encryptionContractConfiguration) Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.
This is a convenience method that creates an instance of theEncryptionContractConfiguration.Builderavoiding the need to create one manually viaEncryptionContractConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toencryptionContractConfiguration(EncryptionContractConfiguration).- Parameters:
encryptionContractConfiguration- a consumer that will call methods onEncryptionContractConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceId
The unique identifier for the content. The service sends this to the key server to identify the current endpoint. How unique you make this depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.
The following example shows a resource ID:
MovieNight20171126093045- Parameters:
resourceId- The unique identifier for the content. The service sends this to the key server to identify the current endpoint. How unique you make this depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.The following example shows a resource ID:
MovieNight20171126093045- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drmSystemsWithStrings
The DRM solution provider you're using to protect your content during distribution.
- Parameters:
drmSystems- The DRM solution provider you're using to protect your content during distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drmSystemsWithStrings
The DRM solution provider you're using to protect your content during distribution.
- Parameters:
drmSystems- The DRM solution provider you're using to protect your content during distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drmSystems
The DRM solution provider you're using to protect your content during distribution.
- Parameters:
drmSystems- The DRM solution provider you're using to protect your content during distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
drmSystems
The DRM solution provider you're using to protect your content during distribution.
- Parameters:
drmSystems- The DRM solution provider you're using to protect your content during distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.
Valid format:
arn:aws:iam::{accountID}:role/{name}. The following example shows a role ARN:arn:aws:iam::444455556666:role/SpekeAccess- Parameters:
roleArn- The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.Valid format:
arn:aws:iam::{accountID}:role/{name}. The following example shows a role ARN:arn:aws:iam::444455556666:role/SpekeAccess- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
The URL of the API Gateway proxy that you set up to talk to your key server. The API Gateway proxy must reside in the same AWS Region as MediaPackage and must start with https://.
The following example shows a URL:
https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection- Parameters:
url- The URL of the API Gateway proxy that you set up to talk to your key server. The API Gateway proxy must reside in the same AWS Region as MediaPackage and must start with https://.The following example shows a URL:
https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateArn
The ARN for the certificate that you imported to Amazon Web Services Certificate Manager to add content key encryption to this endpoint. For this feature to work, your DRM key provider must support content key encryption.
- Parameters:
certificateArn- The ARN for the certificate that you imported to Amazon Web Services Certificate Manager to add content key encryption to this endpoint. For this feature to work, your DRM key provider must support content key encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spekeVersion
Specifies the SPEKE version used with your DRM key provider. If you don't specify a value, the default is
V2_0.The allowed values are:
-
V2_0- Follows the SPEKE Version 2.0 contract and signals only the content key index in key requests. This is the default. -
V2_1- Follows the SPEKE Version 2.1 contract and additionally supports signaling the start and end times a content key is used for, usingContentKeyPeriodConfiguration.
For more information, see SPEKE Version 2.0 payload.
- Parameters:
spekeVersion- Specifies the SPEKE version used with your DRM key provider. If you don't specify a value, the default isV2_0.The allowed values are:
-
V2_0- Follows the SPEKE Version 2.0 contract and signals only the content key index in key requests. This is the default. -
V2_1- Follows the SPEKE Version 2.1 contract and additionally supports signaling the start and end times a content key is used for, usingContentKeyPeriodConfiguration.
For more information, see SPEKE Version 2.0 payload.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
spekeVersion
Specifies the SPEKE version used with your DRM key provider. If you don't specify a value, the default is
V2_0.The allowed values are:
-
V2_0- Follows the SPEKE Version 2.0 contract and signals only the content key index in key requests. This is the default. -
V2_1- Follows the SPEKE Version 2.1 contract and additionally supports signaling the start and end times a content key is used for, usingContentKeyPeriodConfiguration.
For more information, see SPEKE Version 2.0 payload.
- Parameters:
spekeVersion- Specifies the SPEKE version used with your DRM key provider. If you don't specify a value, the default isV2_0.The allowed values are:
-
V2_0- Follows the SPEKE Version 2.0 contract and signals only the content key index in key requests. This is the default. -
V2_1- Follows the SPEKE Version 2.1 contract and additionally supports signaling the start and end times a content key is used for, usingContentKeyPeriodConfiguration.
For more information, see SPEKE Version 2.0 payload.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
contentKeyPeriodConfiguration
SpekeKeyProvider.Builder contentKeyPeriodConfiguration(ContentKeyPeriodConfiguration contentKeyPeriodConfiguration) The configuration that controls whether MediaPackage signals the start and end times a content key is used for, in the
ContentKeyPeriodsent to your DRM key provider. Signaling this timing is supported only when key rotation is enabled (KeyRotationIntervalSecondsis set to a non-zero value) andSpekeVersionisV2_1. You can update these settings on an existing origin endpoint.- Parameters:
contentKeyPeriodConfiguration- The configuration that controls whether MediaPackage signals the start and end times a content key is used for, in theContentKeyPeriodsent to your DRM key provider. Signaling this timing is supported only when key rotation is enabled (KeyRotationIntervalSecondsis set to a non-zero value) andSpekeVersionisV2_1. You can update these settings on an existing origin endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentKeyPeriodConfiguration
default SpekeKeyProvider.Builder contentKeyPeriodConfiguration(Consumer<ContentKeyPeriodConfiguration.Builder> contentKeyPeriodConfiguration) The configuration that controls whether MediaPackage signals the start and end times a content key is used for, in the
This is a convenience method that creates an instance of theContentKeyPeriodsent to your DRM key provider. Signaling this timing is supported only when key rotation is enabled (KeyRotationIntervalSecondsis set to a non-zero value) andSpekeVersionisV2_1. You can update these settings on an existing origin endpoint.ContentKeyPeriodConfiguration.Builderavoiding the need to create one manually viaContentKeyPeriodConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentKeyPeriodConfiguration(ContentKeyPeriodConfiguration).- Parameters:
contentKeyPeriodConfiguration- a consumer that will call methods onContentKeyPeriodConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-