@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpekeKeyProvider extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for the SPEKE key provider.
Constructor and Description |
---|
SpekeKeyProvider() |
Modifier and Type | Method and Description |
---|---|
SpekeKeyProvider |
clone() |
boolean |
equals(Object obj) |
List<String> |
getDrmSystems()
The DRM solution provider you're using to protect your content during distribution.
|
EncryptionContractConfiguration |
getEncryptionContractConfiguration()
Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.
|
String |
getResourceId()
The unique identifier for the content.
|
String |
getRoleArn()
The ARN for the IAM role granted by the key provider that provides access to the key provider API.
|
String |
getUrl()
The URL of the API Gateway proxy that you set up to talk to your key server.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDrmSystems(Collection<String> drmSystems)
The DRM solution provider you're using to protect your content during distribution.
|
void |
setEncryptionContractConfiguration(EncryptionContractConfiguration encryptionContractConfiguration)
Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.
|
void |
setResourceId(String resourceId)
The unique identifier for the content.
|
void |
setRoleArn(String roleArn)
The ARN for the IAM role granted by the key provider that provides access to the key provider API.
|
void |
setUrl(String url)
The URL of the API Gateway proxy that you set up to talk to your key server.
|
String |
toString()
Returns a string representation of this object.
|
SpekeKeyProvider |
withDrmSystems(Collection<String> drmSystems)
The DRM solution provider you're using to protect your content during distribution.
|
SpekeKeyProvider |
withDrmSystems(DrmSystem... drmSystems)
The DRM solution provider you're using to protect your content during distribution.
|
SpekeKeyProvider |
withDrmSystems(String... drmSystems)
The DRM solution provider you're using to protect your content during distribution.
|
SpekeKeyProvider |
withEncryptionContractConfiguration(EncryptionContractConfiguration encryptionContractConfiguration)
Configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0.
|
SpekeKeyProvider |
withResourceId(String resourceId)
The unique identifier for the content.
|
SpekeKeyProvider |
withRoleArn(String roleArn)
The ARN for the IAM role granted by the key provider that provides access to the key provider API.
|
SpekeKeyProvider |
withUrl(String url)
The URL of the API Gateway proxy that you set up to talk to your key server.
|
public void setEncryptionContractConfiguration(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.
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.public EncryptionContractConfiguration getEncryptionContractConfiguration()
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.
public SpekeKeyProvider withEncryptionContractConfiguration(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.
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.public void setResourceId(String 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
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
public String getResourceId()
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
The following example shows a resource ID: MovieNight20171126093045
public SpekeKeyProvider withResourceId(String 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
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
public List<String> getDrmSystems()
The DRM solution provider you're using to protect your content during distribution.
DrmSystem
public void setDrmSystems(Collection<String> drmSystems)
The DRM solution provider you're using to protect your content during distribution.
drmSystems
- The DRM solution provider you're using to protect your content during distribution.DrmSystem
public SpekeKeyProvider withDrmSystems(String... drmSystems)
The DRM solution provider you're using to protect your content during distribution.
NOTE: This method appends the values to the existing list (if any). Use
setDrmSystems(java.util.Collection)
or withDrmSystems(java.util.Collection)
if you want to
override the existing values.
drmSystems
- The DRM solution provider you're using to protect your content during distribution.DrmSystem
public SpekeKeyProvider withDrmSystems(Collection<String> drmSystems)
The DRM solution provider you're using to protect your content during distribution.
drmSystems
- The DRM solution provider you're using to protect your content during distribution.DrmSystem
public SpekeKeyProvider withDrmSystems(DrmSystem... drmSystems)
The DRM solution provider you're using to protect your content during distribution.
drmSystems
- The DRM solution provider you're using to protect your content during distribution.DrmSystem
public void setRoleArn(String 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
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
public String getRoleArn()
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
Valid format: arn:aws:iam::{accountID}:role/{name}
. The following example shows a role ARN:
arn:aws:iam::444455556666:role/SpekeAccess
public SpekeKeyProvider withRoleArn(String 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
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
public void setUrl(String 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
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
public String getUrl()
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
The following example shows a URL:
https://1wm2dx1f33.execute-api.us-west-2.amazonaws.com/SpekeSample/copyProtection
public SpekeKeyProvider withUrl(String 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
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
public String toString()
toString
in class Object
Object.toString()
public SpekeKeyProvider clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.