SendSecurityHeaderElement.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SendSecurityHeaderElement.cs / 1 / SendSecurityHeaderElement.cs

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------

namespace System.ServiceModel.Security 
{
    using System.IdentityModel.Claims; 
    using System.ServiceModel; 
    using System.IdentityModel.Policy;
    using System.ServiceModel.Security.Tokens; 
    using System.Xml;

    using ISecurityElement = System.IdentityModel.ISecurityElement;
 
    class SendSecurityHeaderElement
    { 
        string id; 
        ISecurityElement item;
        bool markedForEncryption; 

        public SendSecurityHeaderElement(string id, ISecurityElement item)
        {
            this.id = id; 
            this.item = item;
            markedForEncryption = false; 
        } 

        public string Id 
        {
            get { return this.id; }
        }
 
        public ISecurityElement Item
        { 
            get { return this.item; } 
        }
 
        public bool MarkedForEncryption
        {
            get { return this.markedForEncryption; }
            set { this.markedForEncryption = value; } 
        }
 
        public bool IsSameItem(ISecurityElement item) 
        {
            return this.item == item ||this.item.Equals(item); 
        }

        public void Replace(string id, ISecurityElement item)
        { 
            this.item = item;
            this.id = id; 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK