Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the StreamingPolicy class.
 /// </summary>
 /// <param name="id">Fully qualified resource ID for the
 /// resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="created">Creation time of Streaming Policy</param>
 /// <param name="defaultContentKeyPolicyName">Default ContentKey used
 /// by current Streaming Policy</param>
 /// <param name="envelopeEncryption">Configuration of
 /// EnvelopeEncryption</param>
 /// <param name="commonEncryptionCenc">Configuration of
 /// CommonEncryptionCenc</param>
 /// <param name="commonEncryptionCbcs">Configuration of
 /// CommonEncryptionCbcs</param>
 /// <param name="noEncryption">Configurations of NoEncryption</param>
 public StreamingPolicy(string id = default(string), string name = default(string), string type = default(string), System.DateTime created = default(System.DateTime), string defaultContentKeyPolicyName = default(string), EnvelopeEncryption envelopeEncryption = default(EnvelopeEncryption), CommonEncryptionCenc commonEncryptionCenc = default(CommonEncryptionCenc), CommonEncryptionCbcs commonEncryptionCbcs = default(CommonEncryptionCbcs), NoEncryption noEncryption = default(NoEncryption))
     : base(id, name, type)
 {
     Created = created;
     DefaultContentKeyPolicyName = defaultContentKeyPolicyName;
     EnvelopeEncryption          = envelopeEncryption;
     CommonEncryptionCenc        = commonEncryptionCenc;
     CommonEncryptionCbcs        = commonEncryptionCbcs;
     NoEncryption = noEncryption;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (EnvelopeEncryption != null)
     {
         EnvelopeEncryption.Validate();
     }
     if (CommonEncryptionCenc != null)
     {
         CommonEncryptionCenc.Validate();
     }
     if (CommonEncryptionCbcs != null)
     {
         CommonEncryptionCbcs.Validate();
     }
     if (NoEncryption != null)
     {
         NoEncryption.Validate();
     }
 }