Class CommonEncryptionCbcs

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

public final class CommonEncryptionCbcs extends Object
Class for CommonEncryptionCbcs encryption scheme.
  • Constructor Details

    • CommonEncryptionCbcs

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

    • enabledProtocols

      public EnabledProtocols enabledProtocols()
      Get the enabledProtocols property: Representing supported protocols.
      Returns:
      the enabledProtocols value.
    • withEnabledProtocols

      public CommonEncryptionCbcs withEnabledProtocols(EnabledProtocols enabledProtocols)
      Set the enabledProtocols property: Representing supported protocols.
      Parameters:
      enabledProtocols - the enabledProtocols value to set.
      Returns:
      the CommonEncryptionCbcs object itself.
    • clearTracks

      public List<TrackSelection> clearTracks()
      Get the clearTracks property: Representing which tracks should not be encrypted.
      Returns:
      the clearTracks value.
    • withClearTracks

      public CommonEncryptionCbcs withClearTracks(List<TrackSelection> clearTracks)
      Set the clearTracks property: Representing which tracks should not be encrypted.
      Parameters:
      clearTracks - the clearTracks value to set.
      Returns:
      the CommonEncryptionCbcs object itself.
    • contentKeys

      public StreamingPolicyContentKeys contentKeys()
      Get the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.
      Returns:
      the contentKeys value.
    • withContentKeys

      public CommonEncryptionCbcs withContentKeys(StreamingPolicyContentKeys contentKeys)
      Set the contentKeys property: Representing default content key for each encryption scheme and separate content keys for specific tracks.
      Parameters:
      contentKeys - the contentKeys value to set.
      Returns:
      the CommonEncryptionCbcs object itself.
    • drm

      public CbcsDrmConfiguration drm()
      Get the drm property: Configuration of DRMs for current encryption scheme.
      Returns:
      the drm value.
    • withDrm

      Set the drm property: Configuration of DRMs for current encryption scheme.
      Parameters:
      drm - the drm value to set.
      Returns:
      the CommonEncryptionCbcs object itself.
    • clearKeyEncryptionConfiguration

      public ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration()
      Get the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCbcs encryption scheme.
      Returns:
      the clearKeyEncryptionConfiguration value.
    • withClearKeyEncryptionConfiguration

      public CommonEncryptionCbcs withClearKeyEncryptionConfiguration(ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration)
      Set the clearKeyEncryptionConfiguration property: Optional configuration supporting ClearKey in CommonEncryptionCbcs encryption scheme.
      Parameters:
      clearKeyEncryptionConfiguration - the clearKeyEncryptionConfiguration value to set.
      Returns:
      the CommonEncryptionCbcs object itself.
    • validate

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