Class ClearKeyEncryptionConfiguration

java.lang.Object
com.azure.resourcemanager.mediaservices.models.ClearKeyEncryptionConfiguration

public final class ClearKeyEncryptionConfiguration extends Object
Class to specify ClearKey configuration of common encryption schemes in Streaming Policy.
  • Constructor Details

    • ClearKeyEncryptionConfiguration

      public ClearKeyEncryptionConfiguration()
      Creates an instance of ClearKeyEncryptionConfiguration class.
  • Method Details

    • customKeysAcquisitionUrlTemplate

      public String customKeysAcquisitionUrlTemplate()
      Get the customKeysAcquisitionUrlTemplate property: Template for the URL of the custom service delivering content keys to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token value is {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId.
      Returns:
      the customKeysAcquisitionUrlTemplate value.
    • withCustomKeysAcquisitionUrlTemplate

      public ClearKeyEncryptionConfiguration withCustomKeysAcquisitionUrlTemplate(String customKeysAcquisitionUrlTemplate)
      Set the customKeysAcquisitionUrlTemplate property: Template for the URL of the custom service delivering content keys to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token value is {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId.
      Parameters:
      customKeysAcquisitionUrlTemplate - the customKeysAcquisitionUrlTemplate value to set.
      Returns:
      the ClearKeyEncryptionConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.