示例#1
0
 /// <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;
 }
示例#2
0
 ///<summary>Sets the value of the <c>&lt;SIF_Security&gt;</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));
 }
示例#3
0
 ///<summary>Sets the value of the <c>&lt;SIF_Security&gt;</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 ) );
 }
示例#4
0
 /// <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);
        }