XD.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / XD.cs / 1305376 / XD.cs

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

// NOTE: this file was generated from 'xd.xml' 

namespace System.IdentityModel 
{ 
    using System.Xml;
    using System.Runtime.CompilerServices; 

    // Static Xml Dictionary
    static class XD
    { 
        static public IdentityModelDictionary Dictionary { get { return IdentityModelDictionary.CurrentVersion; } }
 
        static ExclusiveC14NDictionary exclusiveC14NDictionary; 
        static SamlDictionary samlDictionary;
        static SecurityAlgorithmDictionary securityAlgorithmDictionary; 
        static UtilityDictionary utilityDictionary;
        static XmlSignatureDictionary xmlSignatureDictionary;

        static public ExclusiveC14NDictionary ExclusiveC14NDictionary 
        {
            get 
            { 
                if (exclusiveC14NDictionary == null)
                    exclusiveC14NDictionary = new ExclusiveC14NDictionary(Dictionary); 
                return exclusiveC14NDictionary;
            }
         }
 
        static public SamlDictionary SamlDictionary
        { 
            get 
            {
                if (samlDictionary == null) 
                    samlDictionary = new SamlDictionary(Dictionary);
                return samlDictionary;
            }
         } 

        static public SecurityAlgorithmDictionary SecurityAlgorithmDictionary 
        { 
            get
            { 
                if (securityAlgorithmDictionary == null)
                    securityAlgorithmDictionary = new SecurityAlgorithmDictionary(Dictionary);
                return securityAlgorithmDictionary;
            } 
         }
 
        static public UtilityDictionary UtilityDictionary 
        {
            get 
            {
                if (utilityDictionary == null)
                    utilityDictionary = new UtilityDictionary(Dictionary);
                return utilityDictionary; 
            }
         } 
 
        static public XmlSignatureDictionary XmlSignatureDictionary
        { 
            get
            {
                if (xmlSignatureDictionary == null)
                    xmlSignatureDictionary = new XmlSignatureDictionary(Dictionary); 
                return xmlSignatureDictionary;
            } 
         } 

    } 

    class ExclusiveC14NDictionary
    {
        public XmlDictionaryString Namespace; 
        public XmlDictionaryString PrefixList;
        public XmlDictionaryString InclusiveNamespaces; 
        public XmlDictionaryString Prefix; 

        public ExclusiveC14NDictionary(IdentityModelDictionary dictionary) 
        {
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String20, 20);
            this.PrefixList = dictionary.CreateString(IdentityModelStringsVersion1.String21, 21);
            this.InclusiveNamespaces = dictionary.CreateString(IdentityModelStringsVersion1.String22, 22); 
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String23, 23);
        } 
 
        public ExclusiveC14NDictionary(IXmlDictionary dictionary)
        { 
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String20);
            this.PrefixList = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String21);
            this.InclusiveNamespaces = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String22);
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String23); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 
    class SamlDictionary
    { 
        public XmlDictionaryString Access;
        public XmlDictionaryString AccessDecision;
        public XmlDictionaryString Action;
        public XmlDictionaryString Advice; 
        public XmlDictionaryString Assertion;
        public XmlDictionaryString AssertionId; 
        public XmlDictionaryString AssertionIdReference; 
        public XmlDictionaryString Attribute;
        public XmlDictionaryString AttributeName; 
        public XmlDictionaryString AttributeNamespace;
        public XmlDictionaryString AttributeStatement;
        public XmlDictionaryString AttributeValue;
        public XmlDictionaryString Audience; 
        public XmlDictionaryString AudienceRestrictionCondition;
        public XmlDictionaryString AuthenticationInstant; 
        public XmlDictionaryString AuthenticationMethod; 
        public XmlDictionaryString AuthenticationStatement;
        public XmlDictionaryString AuthorityBinding; 
        public XmlDictionaryString AuthorityKind;
        public XmlDictionaryString AuthorizationDecisionStatement;
        public XmlDictionaryString Binding;
        public XmlDictionaryString Condition; 
        public XmlDictionaryString Conditions;
        public XmlDictionaryString Decision; 
        public XmlDictionaryString DoNotCacheCondition; 
        public XmlDictionaryString Evidence;
        public XmlDictionaryString IssueInstant; 
        public XmlDictionaryString Issuer;
        public XmlDictionaryString Location;
        public XmlDictionaryString MajorVersion;
        public XmlDictionaryString MinorVersion; 
        public XmlDictionaryString Namespace;
        public XmlDictionaryString NameIdentifier; 
        public XmlDictionaryString NameIdentifierFormat; 
        public XmlDictionaryString NameIdentifierNameQualifier;
        public XmlDictionaryString ActionNamespaceAttribute; 
        public XmlDictionaryString NotBefore;
        public XmlDictionaryString NotOnOrAfter;
        public XmlDictionaryString PreferredPrefix;
        public XmlDictionaryString Statement; 
        public XmlDictionaryString Subject;
        public XmlDictionaryString SubjectConfirmation; 
        public XmlDictionaryString SubjectConfirmationData; 
        public XmlDictionaryString SubjectConfirmationMethod;
        public XmlDictionaryString HolderOfKey; 
        public XmlDictionaryString SenderVouches;
        public XmlDictionaryString SubjectLocality;
        public XmlDictionaryString SubjectLocalityDNSAddress;
        public XmlDictionaryString SubjectLocalityIPAddress; 
        public XmlDictionaryString SubjectStatement;
        public XmlDictionaryString UnspecifiedAuthenticationMethod; 
        public XmlDictionaryString NamespaceAttributePrefix; 
        public XmlDictionaryString Resource;
        public XmlDictionaryString UserName; 
        public XmlDictionaryString UserNameNamespace;
        public XmlDictionaryString EmailName;
        public XmlDictionaryString EmailNamespace;
 
        public SamlDictionary(IdentityModelDictionary dictionary)
        { 
            this.Access = dictionary.CreateString(IdentityModelStringsVersion1.String24, 24); 
            this.AccessDecision = dictionary.CreateString(IdentityModelStringsVersion1.String25, 25);
            this.Action = dictionary.CreateString(IdentityModelStringsVersion1.String26, 26); 
            this.Advice = dictionary.CreateString(IdentityModelStringsVersion1.String27, 27);
            this.Assertion = dictionary.CreateString(IdentityModelStringsVersion1.String28, 28);
            this.AssertionId = dictionary.CreateString(IdentityModelStringsVersion1.String29, 29);
            this.AssertionIdReference = dictionary.CreateString(IdentityModelStringsVersion1.String30, 30); 
            this.Attribute = dictionary.CreateString(IdentityModelStringsVersion1.String31, 31);
            this.AttributeName = dictionary.CreateString(IdentityModelStringsVersion1.String32, 32); 
            this.AttributeNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String33, 33); 
            this.AttributeStatement = dictionary.CreateString(IdentityModelStringsVersion1.String34, 34);
            this.AttributeValue = dictionary.CreateString(IdentityModelStringsVersion1.String35, 35); 
            this.Audience = dictionary.CreateString(IdentityModelStringsVersion1.String36, 36);
            this.AudienceRestrictionCondition = dictionary.CreateString(IdentityModelStringsVersion1.String37, 37);
            this.AuthenticationInstant = dictionary.CreateString(IdentityModelStringsVersion1.String38, 38);
            this.AuthenticationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String39, 39); 
            this.AuthenticationStatement = dictionary.CreateString(IdentityModelStringsVersion1.String40, 40);
            this.AuthorityBinding = dictionary.CreateString(IdentityModelStringsVersion1.String41, 41); 
            this.AuthorityKind = dictionary.CreateString(IdentityModelStringsVersion1.String42, 42); 
            this.AuthorizationDecisionStatement = dictionary.CreateString(IdentityModelStringsVersion1.String43, 43);
            this.Binding = dictionary.CreateString(IdentityModelStringsVersion1.String44, 44); 
            this.Condition = dictionary.CreateString(IdentityModelStringsVersion1.String45, 45);
            this.Conditions = dictionary.CreateString(IdentityModelStringsVersion1.String46, 46);
            this.Decision = dictionary.CreateString(IdentityModelStringsVersion1.String47, 47);
            this.DoNotCacheCondition = dictionary.CreateString(IdentityModelStringsVersion1.String48, 48); 
            this.Evidence = dictionary.CreateString(IdentityModelStringsVersion1.String49, 49);
            this.IssueInstant = dictionary.CreateString(IdentityModelStringsVersion1.String50, 50); 
            this.Issuer = dictionary.CreateString(IdentityModelStringsVersion1.String51, 51); 
            this.Location = dictionary.CreateString(IdentityModelStringsVersion1.String52, 52);
            this.MajorVersion = dictionary.CreateString(IdentityModelStringsVersion1.String53, 53); 
            this.MinorVersion = dictionary.CreateString(IdentityModelStringsVersion1.String54, 54);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String55, 55);
            this.NameIdentifier = dictionary.CreateString(IdentityModelStringsVersion1.String56, 56);
            this.NameIdentifierFormat = dictionary.CreateString(IdentityModelStringsVersion1.String57, 57); 
            this.NameIdentifierNameQualifier = dictionary.CreateString(IdentityModelStringsVersion1.String58, 58);
            this.ActionNamespaceAttribute = dictionary.CreateString(IdentityModelStringsVersion1.String59, 59); 
            this.NotBefore = dictionary.CreateString(IdentityModelStringsVersion1.String60, 60); 
            this.NotOnOrAfter = dictionary.CreateString(IdentityModelStringsVersion1.String61, 61);
            this.PreferredPrefix = dictionary.CreateString(IdentityModelStringsVersion1.String62, 62); 
            this.Statement = dictionary.CreateString(IdentityModelStringsVersion1.String63, 63);
            this.Subject = dictionary.CreateString(IdentityModelStringsVersion1.String64, 64);
            this.SubjectConfirmation = dictionary.CreateString(IdentityModelStringsVersion1.String65, 65);
            this.SubjectConfirmationData = dictionary.CreateString(IdentityModelStringsVersion1.String66, 66); 
            this.SubjectConfirmationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String67, 67);
            this.HolderOfKey = dictionary.CreateString(IdentityModelStringsVersion1.String68, 68); 
            this.SenderVouches = dictionary.CreateString(IdentityModelStringsVersion1.String69, 69); 
            this.SubjectLocality = dictionary.CreateString(IdentityModelStringsVersion1.String70, 70);
            this.SubjectLocalityDNSAddress = dictionary.CreateString(IdentityModelStringsVersion1.String71, 71); 
            this.SubjectLocalityIPAddress = dictionary.CreateString(IdentityModelStringsVersion1.String72, 72);
            this.SubjectStatement = dictionary.CreateString(IdentityModelStringsVersion1.String73, 73);
            this.UnspecifiedAuthenticationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String74, 74);
            this.NamespaceAttributePrefix = dictionary.CreateString(IdentityModelStringsVersion1.String75, 75); 
            this.Resource = dictionary.CreateString(IdentityModelStringsVersion1.String76, 76);
            this.UserName = dictionary.CreateString(IdentityModelStringsVersion1.String77, 77); 
            this.UserNameNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String78, 78); 
            this.EmailName = dictionary.CreateString(IdentityModelStringsVersion1.String79, 79);
            this.EmailNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String80, 80); 
        }

        public SamlDictionary(IXmlDictionary dictionary)
        { 
            this.Access = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String24);
            this.AccessDecision = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String25); 
            this.Action = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String26); 
            this.Advice = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String27);
            this.Assertion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String28); 
            this.AssertionId = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String29);
            this.AssertionIdReference = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String30);
            this.Attribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String31);
            this.AttributeName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String32); 
            this.AttributeNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String33);
            this.AttributeStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String34); 
            this.AttributeValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String35); 
            this.Audience = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String36);
            this.AudienceRestrictionCondition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String37); 
            this.AuthenticationInstant = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String38);
            this.AuthenticationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String39);
            this.AuthenticationStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String40);
            this.AuthorityBinding = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String41); 
            this.AuthorityKind = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String42);
            this.AuthorizationDecisionStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String43); 
            this.Binding = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String44); 
            this.Condition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String45);
            this.Conditions = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String46); 
            this.Decision = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String47);
            this.DoNotCacheCondition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String48);
            this.Evidence = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String49);
            this.IssueInstant = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String50); 
            this.Issuer = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String51);
            this.Location = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String52); 
            this.MajorVersion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String53); 
            this.MinorVersion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String54);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String55); 
            this.NameIdentifier = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String56);
            this.NameIdentifierFormat = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String57);
            this.NameIdentifierNameQualifier = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String58);
            this.ActionNamespaceAttribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String59); 
            this.NotBefore = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String60);
            this.NotOnOrAfter = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String61); 
            this.PreferredPrefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String62); 
            this.Statement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String63);
            this.Subject = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String64); 
            this.SubjectConfirmation = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String65);
            this.SubjectConfirmationData = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String66);
            this.SubjectConfirmationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String67);
            this.HolderOfKey = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String68); 
            this.SenderVouches = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String69);
            this.SubjectLocality = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String70); 
            this.SubjectLocalityDNSAddress = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String71); 
            this.SubjectLocalityIPAddress = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String72);
            this.SubjectStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String73); 
            this.UnspecifiedAuthenticationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String74);
            this.NamespaceAttributePrefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String75);
            this.Resource = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String76);
            this.UserName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String77); 
            this.UserNameNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String78);
            this.EmailName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String79); 
            this.EmailNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String80); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value)
        {
            XmlDictionaryString expectedValue;
            if (!dictionary.TryLookup(value, out expectedValue)) 
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));
 
            return expectedValue; 
        }
    } 

    class SecurityAlgorithmDictionary
    {
        public XmlDictionaryString Aes128Encryption; 
        public XmlDictionaryString Aes128KeyWrap;
        public XmlDictionaryString Aes192Encryption; 
        public XmlDictionaryString Aes192KeyWrap; 
        public XmlDictionaryString Aes256Encryption;
        public XmlDictionaryString Aes256KeyWrap; 
        public XmlDictionaryString DesEncryption;
        public XmlDictionaryString DsaSha1Signature;
        public XmlDictionaryString ExclusiveC14n;
        public XmlDictionaryString ExclusiveC14nWithComments; 
        public XmlDictionaryString HmacSha1Signature;
        public XmlDictionaryString HmacSha256Signature; 
        public XmlDictionaryString Psha1KeyDerivation; 
        public XmlDictionaryString Ripemd160Digest;
        public XmlDictionaryString RsaOaepKeyWrap; 
        public XmlDictionaryString RsaSha1Signature;
        public XmlDictionaryString RsaSha256Signature;
        public XmlDictionaryString RsaV15KeyWrap;
        public XmlDictionaryString Sha1Digest; 
        public XmlDictionaryString Sha256Digest;
        public XmlDictionaryString Sha512Digest; 
        public XmlDictionaryString TripleDesEncryption; 
        public XmlDictionaryString TripleDesKeyWrap;
        public XmlDictionaryString TlsSspiKeyWrap; 
        public XmlDictionaryString WindowsSspiKeyWrap;

        public SecurityAlgorithmDictionary(IdentityModelDictionary dictionary)
        { 
            this.Aes128Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String95, 95);
            this.Aes128KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String96, 96); 
            this.Aes192Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String97, 97); 
            this.Aes192KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String98, 98);
            this.Aes256Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String99, 99); 
            this.Aes256KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String100, 100);
            this.DesEncryption = dictionary.CreateString(IdentityModelStringsVersion1.String101, 101);
            this.DsaSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String102, 102);
            this.ExclusiveC14n = dictionary.CreateString(IdentityModelStringsVersion1.String20, 20); 
            this.ExclusiveC14nWithComments = dictionary.CreateString(IdentityModelStringsVersion1.String103, 103);
            this.HmacSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String104, 104); 
            this.HmacSha256Signature = dictionary.CreateString(IdentityModelStringsVersion1.String105, 105); 
            this.Psha1KeyDerivation = dictionary.CreateString(IdentityModelStringsVersion1.String106, 106);
            this.Ripemd160Digest = dictionary.CreateString(IdentityModelStringsVersion1.String107, 107); 
            this.RsaOaepKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String108, 108);
            this.RsaSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String109, 109);
            this.RsaSha256Signature = dictionary.CreateString(IdentityModelStringsVersion1.String110, 110);
            this.RsaV15KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String111, 111); 
            this.Sha1Digest = dictionary.CreateString(IdentityModelStringsVersion1.String112, 112);
            this.Sha256Digest = dictionary.CreateString(IdentityModelStringsVersion1.String113, 113); 
            this.Sha512Digest = dictionary.CreateString(IdentityModelStringsVersion1.String114, 114); 
            this.TripleDesEncryption = dictionary.CreateString(IdentityModelStringsVersion1.String115, 115);
            this.TripleDesKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String116, 116); 
            this.TlsSspiKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String117, 117);
            this.WindowsSspiKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String118, 118);
        }
 
        public SecurityAlgorithmDictionary(IXmlDictionary dictionary)
        { 
            this.Aes128Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String95); 
            this.Aes128KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String96);
            this.Aes192Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String97); 
            this.Aes192KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String98);
            this.Aes256Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String99);
            this.Aes256KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String100);
            this.DesEncryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String101); 
            this.DsaSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String102);
            this.ExclusiveC14n = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String20); 
            this.ExclusiveC14nWithComments = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String103); 
            this.HmacSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String104);
            this.HmacSha256Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String105); 
            this.Psha1KeyDerivation = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String106);
            this.Ripemd160Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String107);
            this.RsaOaepKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String108);
            this.RsaSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String109); 
            this.RsaSha256Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String110);
            this.RsaV15KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String111); 
            this.Sha1Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String112); 
            this.Sha256Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String113);
            this.Sha512Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String114); 
            this.TripleDesEncryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String115);
            this.TripleDesKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String116);
            this.TlsSspiKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String117);
            this.WindowsSspiKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String118); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 
    class UtilityDictionary
    { 
        public XmlDictionaryString IdAttribute;
        public XmlDictionaryString Namespace;
        public XmlDictionaryString Timestamp;
        public XmlDictionaryString CreatedElement; 
        public XmlDictionaryString ExpiresElement;
        public XmlDictionaryString Prefix; 
 
        public UtilityDictionary(IdentityModelDictionary dictionary)
        { 
            this.IdAttribute = dictionary.CreateString(IdentityModelStringsVersion1.String3, 3);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String16, 16);
            this.Timestamp = dictionary.CreateString(IdentityModelStringsVersion1.String17, 17);
            this.CreatedElement = dictionary.CreateString(IdentityModelStringsVersion1.String18, 18); 
            this.ExpiresElement = dictionary.CreateString(IdentityModelStringsVersion1.String19, 19);
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String81, 81); 
        } 

        public UtilityDictionary(IXmlDictionary dictionary) 
        {
            this.IdAttribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String3);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String16);
            this.Timestamp = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String17); 
            this.CreatedElement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String18);
            this.ExpiresElement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String19); 
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String81); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value)
        {
            XmlDictionaryString expectedValue;
            if (!dictionary.TryLookup(value, out expectedValue)) 
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));
 
            return expectedValue; 
        }
    } 

    class XmlSignatureDictionary
    {
        public XmlDictionaryString Algorithm; 
        public XmlDictionaryString URI;
        public XmlDictionaryString Reference; 
        public XmlDictionaryString Transforms; 
        public XmlDictionaryString Transform;
        public XmlDictionaryString DigestMethod; 
        public XmlDictionaryString DigestValue;
        public XmlDictionaryString Namespace;
        public XmlDictionaryString EnvelopedSignature;
        public XmlDictionaryString KeyInfo; 
        public XmlDictionaryString Signature;
        public XmlDictionaryString SignedInfo; 
        public XmlDictionaryString CanonicalizationMethod; 
        public XmlDictionaryString SignatureMethod;
        public XmlDictionaryString SignatureValue; 
        public XmlDictionaryString KeyName;
        public XmlDictionaryString Type;
        public XmlDictionaryString MgmtData;
        public XmlDictionaryString Prefix; 
        public XmlDictionaryString KeyValue;
        public XmlDictionaryString RsaKeyValue; 
        public XmlDictionaryString Modulus; 
        public XmlDictionaryString Exponent;
        public XmlDictionaryString X509Data; 
        public XmlDictionaryString X509IssuerSerial;
        public XmlDictionaryString X509IssuerName;
        public XmlDictionaryString X509SerialNumber;
        public XmlDictionaryString X509Certificate; 

        public XmlSignatureDictionary(IdentityModelDictionary dictionary) 
        { 
            this.Algorithm = dictionary.CreateString(IdentityModelStringsVersion1.String0, 0);
            this.URI = dictionary.CreateString(IdentityModelStringsVersion1.String1, 1); 
            this.Reference = dictionary.CreateString(IdentityModelStringsVersion1.String2, 2);
            this.Transforms = dictionary.CreateString(IdentityModelStringsVersion1.String4, 4);
            this.Transform = dictionary.CreateString(IdentityModelStringsVersion1.String5, 5);
            this.DigestMethod = dictionary.CreateString(IdentityModelStringsVersion1.String6, 6); 
            this.DigestValue = dictionary.CreateString(IdentityModelStringsVersion1.String7, 7);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String8, 8); 
            this.EnvelopedSignature = dictionary.CreateString(IdentityModelStringsVersion1.String9, 9); 
            this.KeyInfo = dictionary.CreateString(IdentityModelStringsVersion1.String10, 10);
            this.Signature = dictionary.CreateString(IdentityModelStringsVersion1.String11, 11); 
            this.SignedInfo = dictionary.CreateString(IdentityModelStringsVersion1.String12, 12);
            this.CanonicalizationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String13, 13);
            this.SignatureMethod = dictionary.CreateString(IdentityModelStringsVersion1.String14, 14);
            this.SignatureValue = dictionary.CreateString(IdentityModelStringsVersion1.String15, 15); 
            this.KeyName = dictionary.CreateString(IdentityModelStringsVersion1.String82, 82);
            this.Type = dictionary.CreateString(IdentityModelStringsVersion1.String83, 83); 
            this.MgmtData = dictionary.CreateString(IdentityModelStringsVersion1.String84, 84); 
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String85, 85);
            this.KeyValue = dictionary.CreateString(IdentityModelStringsVersion1.String86, 86); 
            this.RsaKeyValue = dictionary.CreateString(IdentityModelStringsVersion1.String87, 87);
            this.Modulus = dictionary.CreateString(IdentityModelStringsVersion1.String88, 88);
            this.Exponent = dictionary.CreateString(IdentityModelStringsVersion1.String89, 89);
            this.X509Data = dictionary.CreateString(IdentityModelStringsVersion1.String90, 90); 
            this.X509IssuerSerial = dictionary.CreateString(IdentityModelStringsVersion1.String91, 91);
            this.X509IssuerName = dictionary.CreateString(IdentityModelStringsVersion1.String92, 92); 
            this.X509SerialNumber = dictionary.CreateString(IdentityModelStringsVersion1.String93, 93); 
            this.X509Certificate = dictionary.CreateString(IdentityModelStringsVersion1.String94, 94);
        } 

        public XmlSignatureDictionary(IXmlDictionary dictionary)
        {
            this.Algorithm = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String0); 
            this.URI = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String1);
            this.Reference = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String2); 
            this.Transforms = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String4); 
            this.Transform = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String5);
            this.DigestMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String6); 
            this.DigestValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String7);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String8);
            this.EnvelopedSignature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String9);
            this.KeyInfo = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String10); 
            this.Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String11);
            this.SignedInfo = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String12); 
            this.CanonicalizationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String13); 
            this.SignatureMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String14);
            this.SignatureValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String15); 
            this.KeyName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String82);
            this.Type = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String83);
            this.MgmtData = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String84);
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String85); 
            this.KeyValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String86);
            this.RsaKeyValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String87); 
            this.Modulus = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String88); 
            this.Exponent = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String89);
            this.X509Data = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String90); 
            this.X509IssuerSerial = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String91);
            this.X509IssuerName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String92);
            this.X509SerialNumber = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String93);
            this.X509Certificate = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String94); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 

    static class ExclusiveC14NStrings 
    {
        // Main dictionary strings
        public const string Namespace = IdentityModelStringsVersion1.String20;
        public const string PrefixList = IdentityModelStringsVersion1.String21; 
        public const string InclusiveNamespaces = IdentityModelStringsVersion1.String22;
        public const string Prefix = IdentityModelStringsVersion1.String23; 
    } 

    static class SamlStrings 
    {
        // Main dictionary strings
        public const string Access = IdentityModelStringsVersion1.String24;
        public const string AccessDecision = IdentityModelStringsVersion1.String25; 
        public const string Action = IdentityModelStringsVersion1.String26;
        public const string Advice = IdentityModelStringsVersion1.String27; 
        public const string Assertion = IdentityModelStringsVersion1.String28; 
        public const string AssertionId = IdentityModelStringsVersion1.String29;
        public const string AssertionIdReference = IdentityModelStringsVersion1.String30; 
        public const string Attribute = IdentityModelStringsVersion1.String31;
        public const string AttributeName = IdentityModelStringsVersion1.String32;
        public const string AttributeNamespace = IdentityModelStringsVersion1.String33;
        public const string AttributeStatement = IdentityModelStringsVersion1.String34; 
        public const string AttributeValue = IdentityModelStringsVersion1.String35;
        public const string Audience = IdentityModelStringsVersion1.String36; 
        public const string AudienceRestrictionCondition = IdentityModelStringsVersion1.String37; 
        public const string AuthenticationInstant = IdentityModelStringsVersion1.String38;
        public const string AuthenticationMethod = IdentityModelStringsVersion1.String39; 
        public const string AuthenticationStatement = IdentityModelStringsVersion1.String40;
        public const string AuthorityBinding = IdentityModelStringsVersion1.String41;
        public const string AuthorityKind = IdentityModelStringsVersion1.String42;
        public const string AuthorizationDecisionStatement = IdentityModelStringsVersion1.String43; 
        public const string Binding = IdentityModelStringsVersion1.String44;
        public const string Condition = IdentityModelStringsVersion1.String45; 
        public const string Conditions = IdentityModelStringsVersion1.String46; 
        public const string Decision = IdentityModelStringsVersion1.String47;
        public const string DoNotCacheCondition = IdentityModelStringsVersion1.String48; 
        public const string Evidence = IdentityModelStringsVersion1.String49;
        public const string IssueInstant = IdentityModelStringsVersion1.String50;
        public const string Issuer = IdentityModelStringsVersion1.String51;
        public const string Location = IdentityModelStringsVersion1.String52; 
        public const string MajorVersion = IdentityModelStringsVersion1.String53;
        public const string MinorVersion = IdentityModelStringsVersion1.String54; 
        public const string Namespace = IdentityModelStringsVersion1.String55; 
        public const string NameIdentifier = IdentityModelStringsVersion1.String56;
        public const string NameIdentifierFormat = IdentityModelStringsVersion1.String57; 
        public const string NameIdentifierNameQualifier = IdentityModelStringsVersion1.String58;
        public const string ActionNamespaceAttribute = IdentityModelStringsVersion1.String59;
        public const string NotBefore = IdentityModelStringsVersion1.String60;
        public const string NotOnOrAfter = IdentityModelStringsVersion1.String61; 
        public const string PreferredPrefix = IdentityModelStringsVersion1.String62;
        public const string Statement = IdentityModelStringsVersion1.String63; 
        public const string Subject = IdentityModelStringsVersion1.String64; 
        public const string SubjectConfirmation = IdentityModelStringsVersion1.String65;
        public const string SubjectConfirmationData = IdentityModelStringsVersion1.String66; 
        public const string SubjectConfirmationMethod = IdentityModelStringsVersion1.String67;
        public const string HolderOfKey = IdentityModelStringsVersion1.String68;
        public const string SenderVouches = IdentityModelStringsVersion1.String69;
        public const string SubjectLocality = IdentityModelStringsVersion1.String70; 
        public const string SubjectLocalityDNSAddress = IdentityModelStringsVersion1.String71;
        public const string SubjectLocalityIPAddress = IdentityModelStringsVersion1.String72; 
        public const string SubjectStatement = IdentityModelStringsVersion1.String73; 
        public const string UnspecifiedAuthenticationMethod = IdentityModelStringsVersion1.String74;
        public const string NamespaceAttributePrefix = IdentityModelStringsVersion1.String75; 
        public const string Resource = IdentityModelStringsVersion1.String76;
        public const string UserName = IdentityModelStringsVersion1.String77;
        public const string UserNameNamespace = IdentityModelStringsVersion1.String78;
        public const string EmailName = IdentityModelStringsVersion1.String79; 
        public const string EmailNamespace = IdentityModelStringsVersion1.String80;
    } 
 
    static class SecurityAlgorithmStrings
    { 
        // Main dictionary strings
        public const string Aes128Encryption = IdentityModelStringsVersion1.String95;
        public const string Aes128KeyWrap = IdentityModelStringsVersion1.String96;
        public const string Aes192Encryption = IdentityModelStringsVersion1.String97; 
        public const string Aes192KeyWrap = IdentityModelStringsVersion1.String98;
        public const string Aes256Encryption = IdentityModelStringsVersion1.String99; 
        public const string Aes256KeyWrap = IdentityModelStringsVersion1.String100; 
        public const string DesEncryption = IdentityModelStringsVersion1.String101;
        public const string DsaSha1Signature = IdentityModelStringsVersion1.String102; 
        public const string ExclusiveC14n = IdentityModelStringsVersion1.String20;
        public const string ExclusiveC14nWithComments = IdentityModelStringsVersion1.String103;
        public const string HmacSha1Signature = IdentityModelStringsVersion1.String104;
        public const string HmacSha256Signature = IdentityModelStringsVersion1.String105; 
        public const string Psha1KeyDerivation = IdentityModelStringsVersion1.String106;
        public const string Ripemd160Digest = IdentityModelStringsVersion1.String107; 
        public const string RsaOaepKeyWrap = IdentityModelStringsVersion1.String108; 
        public const string RsaSha1Signature = IdentityModelStringsVersion1.String109;
        public const string RsaSha256Signature = IdentityModelStringsVersion1.String110; 
        public const string RsaV15KeyWrap = IdentityModelStringsVersion1.String111;
        public const string Sha1Digest = IdentityModelStringsVersion1.String112;
        public const string Sha256Digest = IdentityModelStringsVersion1.String113;
        public const string Sha512Digest = IdentityModelStringsVersion1.String114; 
        public const string TripleDesEncryption = IdentityModelStringsVersion1.String115;
        public const string TripleDesKeyWrap = IdentityModelStringsVersion1.String116; 
        public const string TlsSspiKeyWrap = IdentityModelStringsVersion1.String117; 
        public const string WindowsSspiKeyWrap = IdentityModelStringsVersion1.String118;
    } 

    static class UtilityStrings
    {
        // Main dictionary strings 
        public const string IdAttribute = IdentityModelStringsVersion1.String3;
        public const string Namespace = IdentityModelStringsVersion1.String16; 
        public const string Timestamp = IdentityModelStringsVersion1.String17; 
        public const string CreatedElement = IdentityModelStringsVersion1.String18;
        public const string ExpiresElement = IdentityModelStringsVersion1.String19; 
        public const string Prefix = IdentityModelStringsVersion1.String81;
    }

    static class XmlSignatureStrings 
    {
        // Main dictionary strings 
        public const string Algorithm = IdentityModelStringsVersion1.String0; 
        public const string URI = IdentityModelStringsVersion1.String1;
        public const string Reference = IdentityModelStringsVersion1.String2; 
        public const string Transforms = IdentityModelStringsVersion1.String4;
        public const string Transform = IdentityModelStringsVersion1.String5;
        public const string DigestMethod = IdentityModelStringsVersion1.String6;
        public const string DigestValue = IdentityModelStringsVersion1.String7; 
        public const string Namespace = IdentityModelStringsVersion1.String8;
        public const string EnvelopedSignature = IdentityModelStringsVersion1.String9; 
        public const string KeyInfo = IdentityModelStringsVersion1.String10; 
        public const string Signature = IdentityModelStringsVersion1.String11;
        public const string SignedInfo = IdentityModelStringsVersion1.String12; 
        public const string CanonicalizationMethod = IdentityModelStringsVersion1.String13;
        public const string SignatureMethod = IdentityModelStringsVersion1.String14;
        public const string SignatureValue = IdentityModelStringsVersion1.String15;
        public const string KeyName = IdentityModelStringsVersion1.String82; 
        public const string Type = IdentityModelStringsVersion1.String83;
        public const string MgmtData = IdentityModelStringsVersion1.String84; 
        public const string Prefix = IdentityModelStringsVersion1.String85; 
        public const string KeyValue = IdentityModelStringsVersion1.String86;
        public const string RsaKeyValue = IdentityModelStringsVersion1.String87; 
        public const string Modulus = IdentityModelStringsVersion1.String88;
        public const string Exponent = IdentityModelStringsVersion1.String89;
        public const string X509Data = IdentityModelStringsVersion1.String90;
        public const string X509IssuerSerial = IdentityModelStringsVersion1.String91; 
        public const string X509IssuerName = IdentityModelStringsVersion1.String92;
        public const string X509SerialNumber = IdentityModelStringsVersion1.String93; 
        public const string X509Certificate = IdentityModelStringsVersion1.String94; 
    }
} 

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

// NOTE: this file was generated from 'xd.xml' 

namespace System.IdentityModel 
{ 
    using System.Xml;
    using System.Runtime.CompilerServices; 

    // Static Xml Dictionary
    static class XD
    { 
        static public IdentityModelDictionary Dictionary { get { return IdentityModelDictionary.CurrentVersion; } }
 
        static ExclusiveC14NDictionary exclusiveC14NDictionary; 
        static SamlDictionary samlDictionary;
        static SecurityAlgorithmDictionary securityAlgorithmDictionary; 
        static UtilityDictionary utilityDictionary;
        static XmlSignatureDictionary xmlSignatureDictionary;

        static public ExclusiveC14NDictionary ExclusiveC14NDictionary 
        {
            get 
            { 
                if (exclusiveC14NDictionary == null)
                    exclusiveC14NDictionary = new ExclusiveC14NDictionary(Dictionary); 
                return exclusiveC14NDictionary;
            }
         }
 
        static public SamlDictionary SamlDictionary
        { 
            get 
            {
                if (samlDictionary == null) 
                    samlDictionary = new SamlDictionary(Dictionary);
                return samlDictionary;
            }
         } 

        static public SecurityAlgorithmDictionary SecurityAlgorithmDictionary 
        { 
            get
            { 
                if (securityAlgorithmDictionary == null)
                    securityAlgorithmDictionary = new SecurityAlgorithmDictionary(Dictionary);
                return securityAlgorithmDictionary;
            } 
         }
 
        static public UtilityDictionary UtilityDictionary 
        {
            get 
            {
                if (utilityDictionary == null)
                    utilityDictionary = new UtilityDictionary(Dictionary);
                return utilityDictionary; 
            }
         } 
 
        static public XmlSignatureDictionary XmlSignatureDictionary
        { 
            get
            {
                if (xmlSignatureDictionary == null)
                    xmlSignatureDictionary = new XmlSignatureDictionary(Dictionary); 
                return xmlSignatureDictionary;
            } 
         } 

    } 

    class ExclusiveC14NDictionary
    {
        public XmlDictionaryString Namespace; 
        public XmlDictionaryString PrefixList;
        public XmlDictionaryString InclusiveNamespaces; 
        public XmlDictionaryString Prefix; 

        public ExclusiveC14NDictionary(IdentityModelDictionary dictionary) 
        {
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String20, 20);
            this.PrefixList = dictionary.CreateString(IdentityModelStringsVersion1.String21, 21);
            this.InclusiveNamespaces = dictionary.CreateString(IdentityModelStringsVersion1.String22, 22); 
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String23, 23);
        } 
 
        public ExclusiveC14NDictionary(IXmlDictionary dictionary)
        { 
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String20);
            this.PrefixList = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String21);
            this.InclusiveNamespaces = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String22);
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String23); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 
    class SamlDictionary
    { 
        public XmlDictionaryString Access;
        public XmlDictionaryString AccessDecision;
        public XmlDictionaryString Action;
        public XmlDictionaryString Advice; 
        public XmlDictionaryString Assertion;
        public XmlDictionaryString AssertionId; 
        public XmlDictionaryString AssertionIdReference; 
        public XmlDictionaryString Attribute;
        public XmlDictionaryString AttributeName; 
        public XmlDictionaryString AttributeNamespace;
        public XmlDictionaryString AttributeStatement;
        public XmlDictionaryString AttributeValue;
        public XmlDictionaryString Audience; 
        public XmlDictionaryString AudienceRestrictionCondition;
        public XmlDictionaryString AuthenticationInstant; 
        public XmlDictionaryString AuthenticationMethod; 
        public XmlDictionaryString AuthenticationStatement;
        public XmlDictionaryString AuthorityBinding; 
        public XmlDictionaryString AuthorityKind;
        public XmlDictionaryString AuthorizationDecisionStatement;
        public XmlDictionaryString Binding;
        public XmlDictionaryString Condition; 
        public XmlDictionaryString Conditions;
        public XmlDictionaryString Decision; 
        public XmlDictionaryString DoNotCacheCondition; 
        public XmlDictionaryString Evidence;
        public XmlDictionaryString IssueInstant; 
        public XmlDictionaryString Issuer;
        public XmlDictionaryString Location;
        public XmlDictionaryString MajorVersion;
        public XmlDictionaryString MinorVersion; 
        public XmlDictionaryString Namespace;
        public XmlDictionaryString NameIdentifier; 
        public XmlDictionaryString NameIdentifierFormat; 
        public XmlDictionaryString NameIdentifierNameQualifier;
        public XmlDictionaryString ActionNamespaceAttribute; 
        public XmlDictionaryString NotBefore;
        public XmlDictionaryString NotOnOrAfter;
        public XmlDictionaryString PreferredPrefix;
        public XmlDictionaryString Statement; 
        public XmlDictionaryString Subject;
        public XmlDictionaryString SubjectConfirmation; 
        public XmlDictionaryString SubjectConfirmationData; 
        public XmlDictionaryString SubjectConfirmationMethod;
        public XmlDictionaryString HolderOfKey; 
        public XmlDictionaryString SenderVouches;
        public XmlDictionaryString SubjectLocality;
        public XmlDictionaryString SubjectLocalityDNSAddress;
        public XmlDictionaryString SubjectLocalityIPAddress; 
        public XmlDictionaryString SubjectStatement;
        public XmlDictionaryString UnspecifiedAuthenticationMethod; 
        public XmlDictionaryString NamespaceAttributePrefix; 
        public XmlDictionaryString Resource;
        public XmlDictionaryString UserName; 
        public XmlDictionaryString UserNameNamespace;
        public XmlDictionaryString EmailName;
        public XmlDictionaryString EmailNamespace;
 
        public SamlDictionary(IdentityModelDictionary dictionary)
        { 
            this.Access = dictionary.CreateString(IdentityModelStringsVersion1.String24, 24); 
            this.AccessDecision = dictionary.CreateString(IdentityModelStringsVersion1.String25, 25);
            this.Action = dictionary.CreateString(IdentityModelStringsVersion1.String26, 26); 
            this.Advice = dictionary.CreateString(IdentityModelStringsVersion1.String27, 27);
            this.Assertion = dictionary.CreateString(IdentityModelStringsVersion1.String28, 28);
            this.AssertionId = dictionary.CreateString(IdentityModelStringsVersion1.String29, 29);
            this.AssertionIdReference = dictionary.CreateString(IdentityModelStringsVersion1.String30, 30); 
            this.Attribute = dictionary.CreateString(IdentityModelStringsVersion1.String31, 31);
            this.AttributeName = dictionary.CreateString(IdentityModelStringsVersion1.String32, 32); 
            this.AttributeNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String33, 33); 
            this.AttributeStatement = dictionary.CreateString(IdentityModelStringsVersion1.String34, 34);
            this.AttributeValue = dictionary.CreateString(IdentityModelStringsVersion1.String35, 35); 
            this.Audience = dictionary.CreateString(IdentityModelStringsVersion1.String36, 36);
            this.AudienceRestrictionCondition = dictionary.CreateString(IdentityModelStringsVersion1.String37, 37);
            this.AuthenticationInstant = dictionary.CreateString(IdentityModelStringsVersion1.String38, 38);
            this.AuthenticationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String39, 39); 
            this.AuthenticationStatement = dictionary.CreateString(IdentityModelStringsVersion1.String40, 40);
            this.AuthorityBinding = dictionary.CreateString(IdentityModelStringsVersion1.String41, 41); 
            this.AuthorityKind = dictionary.CreateString(IdentityModelStringsVersion1.String42, 42); 
            this.AuthorizationDecisionStatement = dictionary.CreateString(IdentityModelStringsVersion1.String43, 43);
            this.Binding = dictionary.CreateString(IdentityModelStringsVersion1.String44, 44); 
            this.Condition = dictionary.CreateString(IdentityModelStringsVersion1.String45, 45);
            this.Conditions = dictionary.CreateString(IdentityModelStringsVersion1.String46, 46);
            this.Decision = dictionary.CreateString(IdentityModelStringsVersion1.String47, 47);
            this.DoNotCacheCondition = dictionary.CreateString(IdentityModelStringsVersion1.String48, 48); 
            this.Evidence = dictionary.CreateString(IdentityModelStringsVersion1.String49, 49);
            this.IssueInstant = dictionary.CreateString(IdentityModelStringsVersion1.String50, 50); 
            this.Issuer = dictionary.CreateString(IdentityModelStringsVersion1.String51, 51); 
            this.Location = dictionary.CreateString(IdentityModelStringsVersion1.String52, 52);
            this.MajorVersion = dictionary.CreateString(IdentityModelStringsVersion1.String53, 53); 
            this.MinorVersion = dictionary.CreateString(IdentityModelStringsVersion1.String54, 54);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String55, 55);
            this.NameIdentifier = dictionary.CreateString(IdentityModelStringsVersion1.String56, 56);
            this.NameIdentifierFormat = dictionary.CreateString(IdentityModelStringsVersion1.String57, 57); 
            this.NameIdentifierNameQualifier = dictionary.CreateString(IdentityModelStringsVersion1.String58, 58);
            this.ActionNamespaceAttribute = dictionary.CreateString(IdentityModelStringsVersion1.String59, 59); 
            this.NotBefore = dictionary.CreateString(IdentityModelStringsVersion1.String60, 60); 
            this.NotOnOrAfter = dictionary.CreateString(IdentityModelStringsVersion1.String61, 61);
            this.PreferredPrefix = dictionary.CreateString(IdentityModelStringsVersion1.String62, 62); 
            this.Statement = dictionary.CreateString(IdentityModelStringsVersion1.String63, 63);
            this.Subject = dictionary.CreateString(IdentityModelStringsVersion1.String64, 64);
            this.SubjectConfirmation = dictionary.CreateString(IdentityModelStringsVersion1.String65, 65);
            this.SubjectConfirmationData = dictionary.CreateString(IdentityModelStringsVersion1.String66, 66); 
            this.SubjectConfirmationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String67, 67);
            this.HolderOfKey = dictionary.CreateString(IdentityModelStringsVersion1.String68, 68); 
            this.SenderVouches = dictionary.CreateString(IdentityModelStringsVersion1.String69, 69); 
            this.SubjectLocality = dictionary.CreateString(IdentityModelStringsVersion1.String70, 70);
            this.SubjectLocalityDNSAddress = dictionary.CreateString(IdentityModelStringsVersion1.String71, 71); 
            this.SubjectLocalityIPAddress = dictionary.CreateString(IdentityModelStringsVersion1.String72, 72);
            this.SubjectStatement = dictionary.CreateString(IdentityModelStringsVersion1.String73, 73);
            this.UnspecifiedAuthenticationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String74, 74);
            this.NamespaceAttributePrefix = dictionary.CreateString(IdentityModelStringsVersion1.String75, 75); 
            this.Resource = dictionary.CreateString(IdentityModelStringsVersion1.String76, 76);
            this.UserName = dictionary.CreateString(IdentityModelStringsVersion1.String77, 77); 
            this.UserNameNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String78, 78); 
            this.EmailName = dictionary.CreateString(IdentityModelStringsVersion1.String79, 79);
            this.EmailNamespace = dictionary.CreateString(IdentityModelStringsVersion1.String80, 80); 
        }

        public SamlDictionary(IXmlDictionary dictionary)
        { 
            this.Access = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String24);
            this.AccessDecision = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String25); 
            this.Action = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String26); 
            this.Advice = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String27);
            this.Assertion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String28); 
            this.AssertionId = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String29);
            this.AssertionIdReference = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String30);
            this.Attribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String31);
            this.AttributeName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String32); 
            this.AttributeNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String33);
            this.AttributeStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String34); 
            this.AttributeValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String35); 
            this.Audience = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String36);
            this.AudienceRestrictionCondition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String37); 
            this.AuthenticationInstant = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String38);
            this.AuthenticationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String39);
            this.AuthenticationStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String40);
            this.AuthorityBinding = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String41); 
            this.AuthorityKind = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String42);
            this.AuthorizationDecisionStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String43); 
            this.Binding = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String44); 
            this.Condition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String45);
            this.Conditions = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String46); 
            this.Decision = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String47);
            this.DoNotCacheCondition = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String48);
            this.Evidence = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String49);
            this.IssueInstant = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String50); 
            this.Issuer = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String51);
            this.Location = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String52); 
            this.MajorVersion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String53); 
            this.MinorVersion = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String54);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String55); 
            this.NameIdentifier = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String56);
            this.NameIdentifierFormat = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String57);
            this.NameIdentifierNameQualifier = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String58);
            this.ActionNamespaceAttribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String59); 
            this.NotBefore = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String60);
            this.NotOnOrAfter = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String61); 
            this.PreferredPrefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String62); 
            this.Statement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String63);
            this.Subject = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String64); 
            this.SubjectConfirmation = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String65);
            this.SubjectConfirmationData = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String66);
            this.SubjectConfirmationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String67);
            this.HolderOfKey = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String68); 
            this.SenderVouches = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String69);
            this.SubjectLocality = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String70); 
            this.SubjectLocalityDNSAddress = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String71); 
            this.SubjectLocalityIPAddress = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String72);
            this.SubjectStatement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String73); 
            this.UnspecifiedAuthenticationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String74);
            this.NamespaceAttributePrefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String75);
            this.Resource = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String76);
            this.UserName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String77); 
            this.UserNameNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String78);
            this.EmailName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String79); 
            this.EmailNamespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String80); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value)
        {
            XmlDictionaryString expectedValue;
            if (!dictionary.TryLookup(value, out expectedValue)) 
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));
 
            return expectedValue; 
        }
    } 

    class SecurityAlgorithmDictionary
    {
        public XmlDictionaryString Aes128Encryption; 
        public XmlDictionaryString Aes128KeyWrap;
        public XmlDictionaryString Aes192Encryption; 
        public XmlDictionaryString Aes192KeyWrap; 
        public XmlDictionaryString Aes256Encryption;
        public XmlDictionaryString Aes256KeyWrap; 
        public XmlDictionaryString DesEncryption;
        public XmlDictionaryString DsaSha1Signature;
        public XmlDictionaryString ExclusiveC14n;
        public XmlDictionaryString ExclusiveC14nWithComments; 
        public XmlDictionaryString HmacSha1Signature;
        public XmlDictionaryString HmacSha256Signature; 
        public XmlDictionaryString Psha1KeyDerivation; 
        public XmlDictionaryString Ripemd160Digest;
        public XmlDictionaryString RsaOaepKeyWrap; 
        public XmlDictionaryString RsaSha1Signature;
        public XmlDictionaryString RsaSha256Signature;
        public XmlDictionaryString RsaV15KeyWrap;
        public XmlDictionaryString Sha1Digest; 
        public XmlDictionaryString Sha256Digest;
        public XmlDictionaryString Sha512Digest; 
        public XmlDictionaryString TripleDesEncryption; 
        public XmlDictionaryString TripleDesKeyWrap;
        public XmlDictionaryString TlsSspiKeyWrap; 
        public XmlDictionaryString WindowsSspiKeyWrap;

        public SecurityAlgorithmDictionary(IdentityModelDictionary dictionary)
        { 
            this.Aes128Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String95, 95);
            this.Aes128KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String96, 96); 
            this.Aes192Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String97, 97); 
            this.Aes192KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String98, 98);
            this.Aes256Encryption = dictionary.CreateString(IdentityModelStringsVersion1.String99, 99); 
            this.Aes256KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String100, 100);
            this.DesEncryption = dictionary.CreateString(IdentityModelStringsVersion1.String101, 101);
            this.DsaSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String102, 102);
            this.ExclusiveC14n = dictionary.CreateString(IdentityModelStringsVersion1.String20, 20); 
            this.ExclusiveC14nWithComments = dictionary.CreateString(IdentityModelStringsVersion1.String103, 103);
            this.HmacSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String104, 104); 
            this.HmacSha256Signature = dictionary.CreateString(IdentityModelStringsVersion1.String105, 105); 
            this.Psha1KeyDerivation = dictionary.CreateString(IdentityModelStringsVersion1.String106, 106);
            this.Ripemd160Digest = dictionary.CreateString(IdentityModelStringsVersion1.String107, 107); 
            this.RsaOaepKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String108, 108);
            this.RsaSha1Signature = dictionary.CreateString(IdentityModelStringsVersion1.String109, 109);
            this.RsaSha256Signature = dictionary.CreateString(IdentityModelStringsVersion1.String110, 110);
            this.RsaV15KeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String111, 111); 
            this.Sha1Digest = dictionary.CreateString(IdentityModelStringsVersion1.String112, 112);
            this.Sha256Digest = dictionary.CreateString(IdentityModelStringsVersion1.String113, 113); 
            this.Sha512Digest = dictionary.CreateString(IdentityModelStringsVersion1.String114, 114); 
            this.TripleDesEncryption = dictionary.CreateString(IdentityModelStringsVersion1.String115, 115);
            this.TripleDesKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String116, 116); 
            this.TlsSspiKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String117, 117);
            this.WindowsSspiKeyWrap = dictionary.CreateString(IdentityModelStringsVersion1.String118, 118);
        }
 
        public SecurityAlgorithmDictionary(IXmlDictionary dictionary)
        { 
            this.Aes128Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String95); 
            this.Aes128KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String96);
            this.Aes192Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String97); 
            this.Aes192KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String98);
            this.Aes256Encryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String99);
            this.Aes256KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String100);
            this.DesEncryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String101); 
            this.DsaSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String102);
            this.ExclusiveC14n = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String20); 
            this.ExclusiveC14nWithComments = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String103); 
            this.HmacSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String104);
            this.HmacSha256Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String105); 
            this.Psha1KeyDerivation = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String106);
            this.Ripemd160Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String107);
            this.RsaOaepKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String108);
            this.RsaSha1Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String109); 
            this.RsaSha256Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String110);
            this.RsaV15KeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String111); 
            this.Sha1Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String112); 
            this.Sha256Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String113);
            this.Sha512Digest = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String114); 
            this.TripleDesEncryption = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String115);
            this.TripleDesKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String116);
            this.TlsSspiKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String117);
            this.WindowsSspiKeyWrap = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String118); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 
    class UtilityDictionary
    { 
        public XmlDictionaryString IdAttribute;
        public XmlDictionaryString Namespace;
        public XmlDictionaryString Timestamp;
        public XmlDictionaryString CreatedElement; 
        public XmlDictionaryString ExpiresElement;
        public XmlDictionaryString Prefix; 
 
        public UtilityDictionary(IdentityModelDictionary dictionary)
        { 
            this.IdAttribute = dictionary.CreateString(IdentityModelStringsVersion1.String3, 3);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String16, 16);
            this.Timestamp = dictionary.CreateString(IdentityModelStringsVersion1.String17, 17);
            this.CreatedElement = dictionary.CreateString(IdentityModelStringsVersion1.String18, 18); 
            this.ExpiresElement = dictionary.CreateString(IdentityModelStringsVersion1.String19, 19);
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String81, 81); 
        } 

        public UtilityDictionary(IXmlDictionary dictionary) 
        {
            this.IdAttribute = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String3);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String16);
            this.Timestamp = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String17); 
            this.CreatedElement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String18);
            this.ExpiresElement = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String19); 
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String81); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value)
        {
            XmlDictionaryString expectedValue;
            if (!dictionary.TryLookup(value, out expectedValue)) 
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));
 
            return expectedValue; 
        }
    } 

    class XmlSignatureDictionary
    {
        public XmlDictionaryString Algorithm; 
        public XmlDictionaryString URI;
        public XmlDictionaryString Reference; 
        public XmlDictionaryString Transforms; 
        public XmlDictionaryString Transform;
        public XmlDictionaryString DigestMethod; 
        public XmlDictionaryString DigestValue;
        public XmlDictionaryString Namespace;
        public XmlDictionaryString EnvelopedSignature;
        public XmlDictionaryString KeyInfo; 
        public XmlDictionaryString Signature;
        public XmlDictionaryString SignedInfo; 
        public XmlDictionaryString CanonicalizationMethod; 
        public XmlDictionaryString SignatureMethod;
        public XmlDictionaryString SignatureValue; 
        public XmlDictionaryString KeyName;
        public XmlDictionaryString Type;
        public XmlDictionaryString MgmtData;
        public XmlDictionaryString Prefix; 
        public XmlDictionaryString KeyValue;
        public XmlDictionaryString RsaKeyValue; 
        public XmlDictionaryString Modulus; 
        public XmlDictionaryString Exponent;
        public XmlDictionaryString X509Data; 
        public XmlDictionaryString X509IssuerSerial;
        public XmlDictionaryString X509IssuerName;
        public XmlDictionaryString X509SerialNumber;
        public XmlDictionaryString X509Certificate; 

        public XmlSignatureDictionary(IdentityModelDictionary dictionary) 
        { 
            this.Algorithm = dictionary.CreateString(IdentityModelStringsVersion1.String0, 0);
            this.URI = dictionary.CreateString(IdentityModelStringsVersion1.String1, 1); 
            this.Reference = dictionary.CreateString(IdentityModelStringsVersion1.String2, 2);
            this.Transforms = dictionary.CreateString(IdentityModelStringsVersion1.String4, 4);
            this.Transform = dictionary.CreateString(IdentityModelStringsVersion1.String5, 5);
            this.DigestMethod = dictionary.CreateString(IdentityModelStringsVersion1.String6, 6); 
            this.DigestValue = dictionary.CreateString(IdentityModelStringsVersion1.String7, 7);
            this.Namespace = dictionary.CreateString(IdentityModelStringsVersion1.String8, 8); 
            this.EnvelopedSignature = dictionary.CreateString(IdentityModelStringsVersion1.String9, 9); 
            this.KeyInfo = dictionary.CreateString(IdentityModelStringsVersion1.String10, 10);
            this.Signature = dictionary.CreateString(IdentityModelStringsVersion1.String11, 11); 
            this.SignedInfo = dictionary.CreateString(IdentityModelStringsVersion1.String12, 12);
            this.CanonicalizationMethod = dictionary.CreateString(IdentityModelStringsVersion1.String13, 13);
            this.SignatureMethod = dictionary.CreateString(IdentityModelStringsVersion1.String14, 14);
            this.SignatureValue = dictionary.CreateString(IdentityModelStringsVersion1.String15, 15); 
            this.KeyName = dictionary.CreateString(IdentityModelStringsVersion1.String82, 82);
            this.Type = dictionary.CreateString(IdentityModelStringsVersion1.String83, 83); 
            this.MgmtData = dictionary.CreateString(IdentityModelStringsVersion1.String84, 84); 
            this.Prefix = dictionary.CreateString(IdentityModelStringsVersion1.String85, 85);
            this.KeyValue = dictionary.CreateString(IdentityModelStringsVersion1.String86, 86); 
            this.RsaKeyValue = dictionary.CreateString(IdentityModelStringsVersion1.String87, 87);
            this.Modulus = dictionary.CreateString(IdentityModelStringsVersion1.String88, 88);
            this.Exponent = dictionary.CreateString(IdentityModelStringsVersion1.String89, 89);
            this.X509Data = dictionary.CreateString(IdentityModelStringsVersion1.String90, 90); 
            this.X509IssuerSerial = dictionary.CreateString(IdentityModelStringsVersion1.String91, 91);
            this.X509IssuerName = dictionary.CreateString(IdentityModelStringsVersion1.String92, 92); 
            this.X509SerialNumber = dictionary.CreateString(IdentityModelStringsVersion1.String93, 93); 
            this.X509Certificate = dictionary.CreateString(IdentityModelStringsVersion1.String94, 94);
        } 

        public XmlSignatureDictionary(IXmlDictionary dictionary)
        {
            this.Algorithm = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String0); 
            this.URI = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String1);
            this.Reference = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String2); 
            this.Transforms = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String4); 
            this.Transform = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String5);
            this.DigestMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String6); 
            this.DigestValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String7);
            this.Namespace = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String8);
            this.EnvelopedSignature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String9);
            this.KeyInfo = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String10); 
            this.Signature = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String11);
            this.SignedInfo = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String12); 
            this.CanonicalizationMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String13); 
            this.SignatureMethod = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String14);
            this.SignatureValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String15); 
            this.KeyName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String82);
            this.Type = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String83);
            this.MgmtData = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String84);
            this.Prefix = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String85); 
            this.KeyValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String86);
            this.RsaKeyValue = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String87); 
            this.Modulus = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String88); 
            this.Exponent = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String89);
            this.X509Data = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String90); 
            this.X509IssuerSerial = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String91);
            this.X509IssuerName = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String92);
            this.X509SerialNumber = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String93);
            this.X509Certificate = LookupDictionaryString(dictionary, IdentityModelStringsVersion1.String94); 
        }
 
        XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value) 
        {
            XmlDictionaryString expectedValue; 
            if (!dictionary.TryLookup(value, out expectedValue))
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.GetString(SR.XDCannotFindValueInDictionaryString, value));

            return expectedValue; 
        }
    } 
 

    static class ExclusiveC14NStrings 
    {
        // Main dictionary strings
        public const string Namespace = IdentityModelStringsVersion1.String20;
        public const string PrefixList = IdentityModelStringsVersion1.String21; 
        public const string InclusiveNamespaces = IdentityModelStringsVersion1.String22;
        public const string Prefix = IdentityModelStringsVersion1.String23; 
    } 

    static class SamlStrings 
    {
        // Main dictionary strings
        public const string Access = IdentityModelStringsVersion1.String24;
        public const string AccessDecision = IdentityModelStringsVersion1.String25; 
        public const string Action = IdentityModelStringsVersion1.String26;
        public const string Advice = IdentityModelStringsVersion1.String27; 
        public const string Assertion = IdentityModelStringsVersion1.String28; 
        public const string AssertionId = IdentityModelStringsVersion1.String29;
        public const string AssertionIdReference = IdentityModelStringsVersion1.String30; 
        public const string Attribute = IdentityModelStringsVersion1.String31;
        public const string AttributeName = IdentityModelStringsVersion1.String32;
        public const string AttributeNamespace = IdentityModelStringsVersion1.String33;
        public const string AttributeStatement = IdentityModelStringsVersion1.String34; 
        public const string AttributeValue = IdentityModelStringsVersion1.String35;
        public const string Audience = IdentityModelStringsVersion1.String36; 
        public const string AudienceRestrictionCondition = IdentityModelStringsVersion1.String37; 
        public const string AuthenticationInstant = IdentityModelStringsVersion1.String38;
        public const string AuthenticationMethod = IdentityModelStringsVersion1.String39; 
        public const string AuthenticationStatement = IdentityModelStringsVersion1.String40;
        public const string AuthorityBinding = IdentityModelStringsVersion1.String41;
        public const string AuthorityKind = IdentityModelStringsVersion1.String42;
        public const string AuthorizationDecisionStatement = IdentityModelStringsVersion1.String43; 
        public const string Binding = IdentityModelStringsVersion1.String44;
        public const string Condition = IdentityModelStringsVersion1.String45; 
        public const string Conditions = IdentityModelStringsVersion1.String46; 
        public const string Decision = IdentityModelStringsVersion1.String47;
        public const string DoNotCacheCondition = IdentityModelStringsVersion1.String48; 
        public const string Evidence = IdentityModelStringsVersion1.String49;
        public const string IssueInstant = IdentityModelStringsVersion1.String50;
        public const string Issuer = IdentityModelStringsVersion1.String51;
        public const string Location = IdentityModelStringsVersion1.String52; 
        public const string MajorVersion = IdentityModelStringsVersion1.String53;
        public const string MinorVersion = IdentityModelStringsVersion1.String54; 
        public const string Namespace = IdentityModelStringsVersion1.String55; 
        public const string NameIdentifier = IdentityModelStringsVersion1.String56;
        public const string NameIdentifierFormat = IdentityModelStringsVersion1.String57; 
        public const string NameIdentifierNameQualifier = IdentityModelStringsVersion1.String58;
        public const string ActionNamespaceAttribute = IdentityModelStringsVersion1.String59;
        public const string NotBefore = IdentityModelStringsVersion1.String60;
        public const string NotOnOrAfter = IdentityModelStringsVersion1.String61; 
        public const string PreferredPrefix = IdentityModelStringsVersion1.String62;
        public const string Statement = IdentityModelStringsVersion1.String63; 
        public const string Subject = IdentityModelStringsVersion1.String64; 
        public const string SubjectConfirmation = IdentityModelStringsVersion1.String65;
        public const string SubjectConfirmationData = IdentityModelStringsVersion1.String66; 
        public const string SubjectConfirmationMethod = IdentityModelStringsVersion1.String67;
        public const string HolderOfKey = IdentityModelStringsVersion1.String68;
        public const string SenderVouches = IdentityModelStringsVersion1.String69;
        public const string SubjectLocality = IdentityModelStringsVersion1.String70; 
        public const string SubjectLocalityDNSAddress = IdentityModelStringsVersion1.String71;
        public const string SubjectLocalityIPAddress = IdentityModelStringsVersion1.String72; 
        public const string SubjectStatement = IdentityModelStringsVersion1.String73; 
        public const string UnspecifiedAuthenticationMethod = IdentityModelStringsVersion1.String74;
        public const string NamespaceAttributePrefix = IdentityModelStringsVersion1.String75; 
        public const string Resource = IdentityModelStringsVersion1.String76;
        public const string UserName = IdentityModelStringsVersion1.String77;
        public const string UserNameNamespace = IdentityModelStringsVersion1.String78;
        public const string EmailName = IdentityModelStringsVersion1.String79; 
        public const string EmailNamespace = IdentityModelStringsVersion1.String80;
    } 
 
    static class SecurityAlgorithmStrings
    { 
        // Main dictionary strings
        public const string Aes128Encryption = IdentityModelStringsVersion1.String95;
        public const string Aes128KeyWrap = IdentityModelStringsVersion1.String96;
        public const string Aes192Encryption = IdentityModelStringsVersion1.String97; 
        public const string Aes192KeyWrap = IdentityModelStringsVersion1.String98;
        public const string Aes256Encryption = IdentityModelStringsVersion1.String99; 
        public const string Aes256KeyWrap = IdentityModelStringsVersion1.String100; 
        public const string DesEncryption = IdentityModelStringsVersion1.String101;
        public const string DsaSha1Signature = IdentityModelStringsVersion1.String102; 
        public const string ExclusiveC14n = IdentityModelStringsVersion1.String20;
        public const string ExclusiveC14nWithComments = IdentityModelStringsVersion1.String103;
        public const string HmacSha1Signature = IdentityModelStringsVersion1.String104;
        public const string HmacSha256Signature = IdentityModelStringsVersion1.String105; 
        public const string Psha1KeyDerivation = IdentityModelStringsVersion1.String106;
        public const string Ripemd160Digest = IdentityModelStringsVersion1.String107; 
        public const string RsaOaepKeyWrap = IdentityModelStringsVersion1.String108; 
        public const string RsaSha1Signature = IdentityModelStringsVersion1.String109;
        public const string RsaSha256Signature = IdentityModelStringsVersion1.String110; 
        public const string RsaV15KeyWrap = IdentityModelStringsVersion1.String111;
        public const string Sha1Digest = IdentityModelStringsVersion1.String112;
        public const string Sha256Digest = IdentityModelStringsVersion1.String113;
        public const string Sha512Digest = IdentityModelStringsVersion1.String114; 
        public const string TripleDesEncryption = IdentityModelStringsVersion1.String115;
        public const string TripleDesKeyWrap = IdentityModelStringsVersion1.String116; 
        public const string TlsSspiKeyWrap = IdentityModelStringsVersion1.String117; 
        public const string WindowsSspiKeyWrap = IdentityModelStringsVersion1.String118;
    } 

    static class UtilityStrings
    {
        // Main dictionary strings 
        public const string IdAttribute = IdentityModelStringsVersion1.String3;
        public const string Namespace = IdentityModelStringsVersion1.String16; 
        public const string Timestamp = IdentityModelStringsVersion1.String17; 
        public const string CreatedElement = IdentityModelStringsVersion1.String18;
        public const string ExpiresElement = IdentityModelStringsVersion1.String19; 
        public const string Prefix = IdentityModelStringsVersion1.String81;
    }

    static class XmlSignatureStrings 
    {
        // Main dictionary strings 
        public const string Algorithm = IdentityModelStringsVersion1.String0; 
        public const string URI = IdentityModelStringsVersion1.String1;
        public const string Reference = IdentityModelStringsVersion1.String2; 
        public const string Transforms = IdentityModelStringsVersion1.String4;
        public const string Transform = IdentityModelStringsVersion1.String5;
        public const string DigestMethod = IdentityModelStringsVersion1.String6;
        public const string DigestValue = IdentityModelStringsVersion1.String7; 
        public const string Namespace = IdentityModelStringsVersion1.String8;
        public const string EnvelopedSignature = IdentityModelStringsVersion1.String9; 
        public const string KeyInfo = IdentityModelStringsVersion1.String10; 
        public const string Signature = IdentityModelStringsVersion1.String11;
        public const string SignedInfo = IdentityModelStringsVersion1.String12; 
        public const string CanonicalizationMethod = IdentityModelStringsVersion1.String13;
        public const string SignatureMethod = IdentityModelStringsVersion1.String14;
        public const string SignatureValue = IdentityModelStringsVersion1.String15;
        public const string KeyName = IdentityModelStringsVersion1.String82; 
        public const string Type = IdentityModelStringsVersion1.String83;
        public const string MgmtData = IdentityModelStringsVersion1.String84; 
        public const string Prefix = IdentityModelStringsVersion1.String85; 
        public const string KeyValue = IdentityModelStringsVersion1.String86;
        public const string RsaKeyValue = IdentityModelStringsVersion1.String87; 
        public const string Modulus = IdentityModelStringsVersion1.String88;
        public const string Exponent = IdentityModelStringsVersion1.String89;
        public const string X509Data = IdentityModelStringsVersion1.String90;
        public const string X509IssuerSerial = IdentityModelStringsVersion1.String91; 
        public const string X509IssuerName = IdentityModelStringsVersion1.String92;
        public const string X509SerialNumber = IdentityModelStringsVersion1.String93; 
        public const string X509Certificate = IdentityModelStringsVersion1.String94; 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

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