Class StreamingPolicyFairPlayConfiguration

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

public final class StreamingPolicyFairPlayConfiguration extends Object
Class to specify configurations of FairPlay in Streaming Policy.
  • Constructor Details

    • StreamingPolicyFairPlayConfiguration

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

    • customLicenseAcquisitionUrlTemplate

      public String customLicenseAcquisitionUrlTemplate()
      Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering licenses 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 values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
      Returns:
      the customLicenseAcquisitionUrlTemplate value.
    • withCustomLicenseAcquisitionUrlTemplate

      public StreamingPolicyFairPlayConfiguration withCustomLicenseAcquisitionUrlTemplate(String customLicenseAcquisitionUrlTemplate)
      Set the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering licenses 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 values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested.
      Parameters:
      customLicenseAcquisitionUrlTemplate - the customLicenseAcquisitionUrlTemplate value to set.
      Returns:
      the StreamingPolicyFairPlayConfiguration object itself.
    • allowPersistentLicense

      public boolean allowPersistentLicense()
      Get the allowPersistentLicense property: All license to be persistent or not.
      Returns:
      the allowPersistentLicense value.
    • withAllowPersistentLicense

      public StreamingPolicyFairPlayConfiguration withAllowPersistentLicense(boolean allowPersistentLicense)
      Set the allowPersistentLicense property: All license to be persistent or not.
      Parameters:
      allowPersistentLicense - the allowPersistentLicense value to set.
      Returns:
      the StreamingPolicyFairPlayConfiguration object itself.
    • validate

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