File: System\ServiceModel\MessageSecurityVersion.cs
Project: ndp\cdf\src\WCF\ServiceModel\System.ServiceModel.csproj (System.ServiceModel)
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//------------------------------------------------------------
namespace System.ServiceModel
{
    using System.ServiceModel.Security;
    using System.IdentityModel.Selectors;
 
    public abstract class MessageSecurityVersion
    {
        public static MessageSecurityVersion WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11
        {
            get
            {
                return WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10
        {
            get
            {
                return WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10
        {
            get
            {
                return WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12
        {
            get
            {
                return WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10
        {
            get
            {
                return WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10
        {
            get
            {
                return WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion.Instance;
            }
        }
 
        public static MessageSecurityVersion Default
        {
            get
            {
                return WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11MessageSecurityVersion.Instance;
            }
        }
 
        internal static MessageSecurityVersion WSSXDefault
        {
            get
            {
                return WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12MessageSecurityVersion.Instance;
            }
        }
 
        internal MessageSecurityVersion() { }
 
        public SecurityVersion SecurityVersion
        {
            get
            {
                return MessageSecurityTokenVersion.SecurityVersion;
            }
        }
 
        public TrustVersion TrustVersion
        {
            get
            {
                return MessageSecurityTokenVersion.TrustVersion;
            }
        }
 
        public SecureConversationVersion SecureConversationVersion
        {
            get
            {
                return MessageSecurityTokenVersion.SecureConversationVersion;
            }
        }
 
        public SecurityTokenVersion SecurityTokenVersion
        {
            get
            {
                return MessageSecurityTokenVersion;
            }
        }
 
        public abstract SecurityPolicyVersion SecurityPolicyVersion { get; }
        public abstract BasicSecurityProfileVersion BasicSecurityProfileVersion { get; }
        internal abstract MessageSecurityTokenVersion MessageSecurityTokenVersion { get; }
 
        class WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return null; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy11; }
            }
 
            public override string ToString()
            {
                return "WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11";
            }
        }
 
        class WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return BasicSecurityProfileVersion.BasicSecurityProfile10; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005BasicSecurityProfile10; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy11; }
            }
 
            public override string ToString()
            {
                return "WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10";
            }
        }
 
        class WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy11; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return BasicSecurityProfileVersion.BasicSecurityProfile10; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005BasicSecurityProfile10; }
            }
 
            public override string ToString()
            {
                return "WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10";
            }
        }
 
        class WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy12; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return null; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity10WSTrust13WSSecureConversation13BasicSecurityProfile10; }
            }
 
            public override string ToString()
            {
                return "WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10";
            }
        }
 
        class WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy12; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return null; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity11WSTrust13WSSecureConversation13; }
            }
 
            public override string ToString()
            {
                return "WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12";
            }
        }
 
        class WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion : MessageSecurityVersion
        {
            static MessageSecurityVersion instance = new WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10MessageSecurityVersion();
 
            public static MessageSecurityVersion Instance
            {
                get { return instance; }
            }
 
            public override SecurityPolicyVersion SecurityPolicyVersion
            {
                get { return SecurityPolicyVersion.WSSecurityPolicy12; }
            }
 
            public override BasicSecurityProfileVersion BasicSecurityProfileVersion
            {
                get { return null; }
            }
 
            internal override MessageSecurityTokenVersion MessageSecurityTokenVersion
            {
                get { return MessageSecurityTokenVersion.WSSecurity11WSTrust13WSSecureConversation13BasicSecurityProfile10; }
            }
 
            public override string ToString()
            {
                return "WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10";
            }
        }
    }
}