1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.IdentityModel
{
using System;
using System.Xml;
internal class DictionaryManager
{
SamlDictionary samlDictionary;
XmlSignatureDictionary sigantureDictionary;
UtilityDictionary utilityDictionary;
ExclusiveC14NDictionary exclusiveC14NDictionary;
SecurityAlgorithmDec2005Dictionary securityAlgorithmDec2005Dictionary;
SecurityAlgorithmDictionary securityAlgorithmDictionary;
SecurityJan2004Dictionary securityJan2004Dictionary;
SecurityXXX2005Dictionary securityJanXXX2005Dictionary;
SecureConversationDec2005Dictionary secureConversationDec2005Dictionary;
SecureConversationFeb2005Dictionary secureConversationFeb2005Dictionary;
TrustFeb2005Dictionary trustFeb2005Dictionary;
TrustDec2005Dictionary trustDec2005Dictionary;
XmlEncryptionDictionary xmlEncryptionDictionary;
IXmlDictionary parentDictionary;
public DictionaryManager()
{
this.samlDictionary = XD.SamlDictionary;
this.sigantureDictionary = XD.XmlSignatureDictionary;
this.utilityDictionary = XD.UtilityDictionary;
this.exclusiveC14NDictionary = XD.ExclusiveC14NDictionary;
this.securityAlgorithmDictionary = XD.SecurityAlgorithmDictionary;
this.parentDictionary = XD.Dictionary;
this.securityJan2004Dictionary = XD.SecurityJan2004Dictionary;
this.securityJanXXX2005Dictionary = XD.SecurityXXX2005Dictionary;
this.secureConversationFeb2005Dictionary = XD.SecureConversationFeb2005Dictionary;
this.trustFeb2005Dictionary = XD.TrustFeb2005Dictionary;
this.xmlEncryptionDictionary = XD.XmlEncryptionDictionary;
// These 3 are factored into a seperate dictionary in ServiceModel under DXD.
this.secureConversationDec2005Dictionary = XD.SecureConversationDec2005Dictionary;
this.securityAlgorithmDec2005Dictionary = XD.SecurityAlgorithmDec2005Dictionary;
this.trustDec2005Dictionary = XD.TrustDec2005Dictionary;
}
public DictionaryManager(IXmlDictionary parentDictionary)
{
this.samlDictionary = new SamlDictionary(parentDictionary);
this.sigantureDictionary = new XmlSignatureDictionary(parentDictionary);
this.utilityDictionary = new UtilityDictionary(parentDictionary);
this.exclusiveC14NDictionary = new ExclusiveC14NDictionary(parentDictionary);
this.securityAlgorithmDictionary = new SecurityAlgorithmDictionary(parentDictionary);
this.securityJan2004Dictionary = new SecurityJan2004Dictionary(parentDictionary);
this.securityJanXXX2005Dictionary = new SecurityXXX2005Dictionary(parentDictionary);
this.secureConversationFeb2005Dictionary = new SecureConversationFeb2005Dictionary(parentDictionary);
this.trustFeb2005Dictionary = new TrustFeb2005Dictionary(parentDictionary);
this.xmlEncryptionDictionary = new XmlEncryptionDictionary(parentDictionary);
this.parentDictionary = parentDictionary;
// These 3 are factored into a seperate dictionary in ServiceModel under DXD.
// ServiceModel should set these seperately using the property setters.
this.secureConversationDec2005Dictionary = XD.SecureConversationDec2005Dictionary;
this.securityAlgorithmDec2005Dictionary = XD.SecurityAlgorithmDec2005Dictionary;
this.trustDec2005Dictionary = XD.TrustDec2005Dictionary;
}
public SamlDictionary SamlDictionary
{
get { return this.samlDictionary; }
set { this.samlDictionary = value; }
}
public XmlSignatureDictionary XmlSignatureDictionary
{
get { return this.sigantureDictionary; }
set { this.sigantureDictionary = value; }
}
public UtilityDictionary UtilityDictionary
{
get { return this.utilityDictionary; }
set { this.utilityDictionary = value; }
}
public ExclusiveC14NDictionary ExclusiveC14NDictionary
{
get { return this.exclusiveC14NDictionary; }
set { this.exclusiveC14NDictionary = value; }
}
public SecurityAlgorithmDec2005Dictionary SecurityAlgorithmDec2005Dictionary
{
get { return this.securityAlgorithmDec2005Dictionary; }
set { this.securityAlgorithmDec2005Dictionary = value; }
}
public SecurityAlgorithmDictionary SecurityAlgorithmDictionary
{
get { return this.securityAlgorithmDictionary; }
set { this.securityAlgorithmDictionary = value; }
}
public SecurityJan2004Dictionary SecurityJan2004Dictionary
{
get { return this.securityJan2004Dictionary; }
set { this.securityJan2004Dictionary = value; }
}
public SecurityXXX2005Dictionary SecurityJanXXX2005Dictionary
{
get { return this.securityJanXXX2005Dictionary; }
set { this.securityJanXXX2005Dictionary = value; }
}
public SecureConversationDec2005Dictionary SecureConversationDec2005Dictionary
{
get { return this.secureConversationDec2005Dictionary; }
set { this.secureConversationDec2005Dictionary = value; }
}
public SecureConversationFeb2005Dictionary SecureConversationFeb2005Dictionary
{
get { return this.secureConversationFeb2005Dictionary; }
set { this.secureConversationFeb2005Dictionary = value; }
}
public TrustDec2005Dictionary TrustDec2005Dictionary
{
get { return this.trustDec2005Dictionary; }
set { this.trustDec2005Dictionary = value; }
}
public TrustFeb2005Dictionary TrustFeb2005Dictionary
{
get { return this.trustFeb2005Dictionary; }
set { this.trustFeb2005Dictionary = value; }
}
public XmlEncryptionDictionary XmlEncryptionDictionary
{
get { return this.xmlEncryptionDictionary; }
set { this.xmlEncryptionDictionary = value; }
}
public IXmlDictionary ParentDictionary
{
get { return this.parentDictionary; }
set { this.parentDictionary = value; }
}
}
}
|