/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="sifSecureChannel">A SIF_SecureChannel</param> /// public SIF_Security(SIF_SecureChannel sifSecureChannel) : base(InfraDTD.SIF_SECURITY) { this.SIF_SecureChannel = sifSecureChannel; }
///<summary>Sets the value of the <c><SIF_Security></c> element.</summary> /// <param name="SifSecureChannel">A SIF_SecureChannel</param> ///<remarks> /// <para>This form of <c>setSIF_Security</c> is provided as a convenience method /// that is functionally equivalent to the <c>SIF_Security</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void SetSIF_Security(SIF_SecureChannel SifSecureChannel) { RemoveChild(InfraDTD.SIF_HEADER_SIF_SECURITY); AddChild(InfraDTD.SIF_HEADER_SIF_SECURITY, new SIF_Security(SifSecureChannel)); }
///<summary>Sets the value of the <c><SIF_Security></c> element.</summary> /// <param name="SifSecureChannel">A SIF_SecureChannel</param> ///<remarks> /// <para>This form of <c>setSIF_Security</c> is provided as a convenience method /// that is functionally equivalent to the <c>SIF_Security</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.1</para> /// </remarks> public void SetSIF_Security( SIF_SecureChannel SifSecureChannel ) { RemoveChild( InfraDTD.SIF_HEADER_SIF_SECURITY); AddChild( InfraDTD.SIF_HEADER_SIF_SECURITY, new SIF_Security( SifSecureChannel ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="sifSecureChannel">A SIF_SecureChannel</param> /// public SIF_Security( SIF_SecureChannel sifSecureChannel ) : base(InfraDTD.SIF_SECURITY) { this.SIF_SecureChannel = sifSecureChannel; }
/// <summary> /// Returns the SIF_Security object that represents the zone's security settings /// </summary> /// <returns></returns> protected internal SIF_Security secureChannel() { AgentProperties props = fZone.Properties; SIF_SecureChannel sec = new SIF_SecureChannel (AuthenticationLevel.Wrap(props.AuthenticationLevel.ToString()), EncryptionLevel.Wrap(props.EncryptionLevel.ToString())); return new SIF_Security(sec); }