Example #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (EnabledProtocols != null)
     {
         EnabledProtocols.Validate();
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the EnvelopeEncryption class.
 /// </summary>
 /// <param name="enabledProtocols">Representing supported
 /// protocols</param>
 /// <param name="clearTracks">Representing which tracks should not be
 /// encrypted</param>
 /// <param name="contentKeys">Representing default content key for each
 /// encryption scheme and separate content keys for specific
 /// tracks</param>
 /// <param
 /// name="customKeyAcquisitionUrlTemplate">KeyAcquisitionUrlTemplate is
 /// used to point to user specified service to delivery content
 /// keys</param>
 public EnvelopeEncryption(EnabledProtocols enabledProtocols = default(EnabledProtocols), IList <TrackSelection> clearTracks = default(IList <TrackSelection>), StreamingPolicyContentKeys contentKeys = default(StreamingPolicyContentKeys), string customKeyAcquisitionUrlTemplate = default(string))
 {
     EnabledProtocols = enabledProtocols;
     ClearTracks      = clearTracks;
     ContentKeys      = contentKeys;
     CustomKeyAcquisitionUrlTemplate = customKeyAcquisitionUrlTemplate;
     CustomInit();
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the CommonEncryptionCbcs class.
 /// </summary>
 /// <param name="enabledProtocols">Representing supported
 /// protocols</param>
 /// <param name="clearTracks">Representing which tracks should not be
 /// encrypted</param>
 /// <param name="contentKeys">Representing default content key for each
 /// encryption scheme and separate content keys for specific
 /// tracks</param>
 /// <param name="drm">Configuration of DRMs for current encryption
 /// scheme</param>
 public CommonEncryptionCbcs(EnabledProtocols enabledProtocols = default(EnabledProtocols), IList <TrackSelection> clearTracks = default(IList <TrackSelection>), StreamingPolicyContentKeys contentKeys = default(StreamingPolicyContentKeys), CbcsDrmConfiguration drm = default(CbcsDrmConfiguration))
 {
     EnabledProtocols = enabledProtocols;
     ClearTracks      = clearTracks;
     ContentKeys      = contentKeys;
     Drm = drm;
     CustomInit();
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the NoEncryption class.
 /// </summary>
 /// <param name="enabledProtocols">Representing supported
 /// protocols</param>
 public NoEncryption(EnabledProtocols enabledProtocols = default(EnabledProtocols))
 {
     EnabledProtocols = enabledProtocols;
     CustomInit();
 }