Class SpekeKeyProvider
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SpekeKeyProvider.Builder,
SpekeKeyProvider>
The parameters for the SPEKE key provider.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SpekeKeyProvider.Builder
builder()
The DRM solution provider you're using to protect your content during distribution.The DRM solution provider you're using to protect your content during distribution.Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the DrmSystems property.final int
hashCode()
final String
The unique identifier for the content.final String
roleArn()
The ARN for the IAM role granted by the key provider that provides access to the key provider API.static Class
<? extends SpekeKeyProvider.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
url()
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.ToCopyableBuilder
copy
-
Method Details
-
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:
- 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.
-
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:
- 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
-
drmSystems
The DRM solution provider you're using to protect your content during distribution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDrmSystems()
method.- Returns:
- The DRM solution provider you're using to protect your content during distribution.
-
hasDrmSystems
public final boolean hasDrmSystems()For responses, this returns true if the service returned a value for the DrmSystems property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
drmSystemsAsStrings
The DRM solution provider you're using to protect your content during distribution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDrmSystems()
method.- Returns:
- The DRM solution provider you're using to protect your content during distribution.
-
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:
- 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
-
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:
- 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
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SpekeKeyProvider.Builder,
SpekeKeyProvider> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-