59 references to XmlHelper
System.ServiceModel (59)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (2)
450
auth = Convert.FromBase64String(
XmlHelper
.ReadTextElementAsTrimmedString(authElement));
634
string code =
XmlHelper
.ReadTextElementAsTrimmedString(desc);
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
765
XmlHelper
.WriteElementStringAsUniqueId(xml, "SessionId", this.sessionId);
System\ServiceModel\Security\SecurityMessageProperty.cs (1)
128
XmlHelper
.ValidateIdPrefix(value);
System\ServiceModel\Security\SecurityVersion.cs (2)
263
string id =
XmlHelper
.GetRequiredNonEmptyAttribute(reader, XD.UtilityDictionary.IdAttribute, XD.UtilityDictionary.Namespace);
264
byte[] signatureValue =
XmlHelper
.GetRequiredBase64Attribute(reader, XD.SecurityXXX2005Dictionary.ValueAttribute, null);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (10)
70
effectiveTime = new DateTime(
XmlHelper
.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
74
expiryTime = new DateTime(
XmlHelper
.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
86
keyEffectiveTime = new DateTime(
XmlHelper
.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
90
keyExpirationTime = new DateTime(
XmlHelper
.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
174
XmlHelper
.WriteElementStringAsUniqueId(writer, dictionary.ContextId, dictionary.EmptyString, contextId);
182
XmlHelper
.WriteElementStringAsUniqueId(writer, dictionary.KeyGeneration, dictionary.EmptyString, keyGeneration);
185
XmlHelper
.WriteElementContentAsInt64(writer, dictionary.EffectiveTime, dictionary.EmptyString, tokenEffectiveTime.ToUniversalTime().Ticks);
186
XmlHelper
.WriteElementContentAsInt64(writer, dictionary.ExpiryTime, dictionary.EmptyString, tokenExpirationTime.ToUniversalTime().Ticks);
187
XmlHelper
.WriteElementContentAsInt64(writer, dictionary.KeyEffectiveTime, dictionary.EmptyString, keyEffectiveTime.ToUniversalTime().Ticks);
188
XmlHelper
.WriteElementContentAsInt64(writer, dictionary.KeyExpiryTime, dictionary.EmptyString, keyExpirationTime.ToUniversalTime().Ticks);
System\ServiceModel\Security\WsKeyInfoSerializer.cs (6)
147
System.Xml.UniqueId uri =
XmlHelper
.GetAttributeAsUniqueId( reader, XD.SecurityJan2004Dictionary.URI, null );
178
XmlHelper
.WriteAttributeStringAsUniqueId( writer, null, XD.SecurityJan2004Dictionary.URI, null, sctClause.ContextId );
273
return
XmlHelper
.GetAttributeAsUniqueId(
284
XmlHelper
.WriteAttributeStringAsUniqueId(
329
return
XmlHelper
.GetAttributeAsUniqueId( reader, this.Parent.SecurityTokenSerializer.DictionaryManager.SecureConversationDec2005Dictionary.Instance,
338
XmlHelper
.WriteAttributeStringAsUniqueId(
System\ServiceModel\Security\WSSecureConversation.cs (3)
356
contextId =
XmlHelper
.ReadTextElementAsUniqueId(element);
502
XmlHelper
.WriteStringAsUniqueId(writer, sct.ContextId);
568
UniqueId contextId =
XmlHelper
.ReadElementStringAsUniqueId(reader, DriverDictionary.Identifier, DriverDictionary.Namespace);
System\ServiceModel\Security\WSSecureConversationDec2005.cs (2)
104
return
XmlHelper
.ReadTextElementAsUniqueId(element);
115
XmlHelper
.WriteStringAsUniqueId(writer, sct.KeyGeneration);
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (2)
96
return
XmlHelper
.ReadTextElementAsUniqueId(element);
106
XmlHelper
.WriteStringAsUniqueId(writer, sct.KeyGeneration);
System\ServiceModel\Security\WSSecurityJan2004.cs (2)
472
XmlHelper
.OnUnexpectedChildNodeError(SecurityJan2004Strings.UserNameTokenElement, reader);
478
XmlHelper
.OnRequiredElementMissing(SecurityJan2004Strings.UserNameElement, SecurityJan2004Strings.Namespace);
System\ServiceModel\Security\WSTrust.cs (25)
266
tokenTypeUri =
XmlHelper
.ReadTextElementAsTrimmedString(child);
268
requestType =
XmlHelper
.ReadTextElementAsTrimmedString(child);
270
keySize = Int32.Parse(
XmlHelper
.ReadTextElementAsTrimmedString(child), NumberFormatInfo.InvariantInfo);
320
XmlHelper
.OnRequiredElementMissing(DriverDictionary.RequestSecurityTokenResponse.Value, DriverDictionary.Namespace.Value);
362
tokenTypeUri =
XmlHelper
.ReadTextElementAsTrimmedString(child);
364
keySize = Int32.Parse(
XmlHelper
.ReadTextElementAsTrimmedString(child), NumberFormatInfo.InvariantInfo);
367
XmlElement proofXml =
XmlHelper
.GetChildElement(child);
370
string computedKeyAlgorithm =
XmlHelper
.ReadTextElementAsTrimmedString(proofXml);
380
XmlElement createdXml =
XmlHelper
.GetChildElement(child, UtilityStrings.CreatedElement, UtilityStrings.Namespace);
383
created = DateTime.ParseExact(
XmlHelper
.ReadTextElementAsTrimmedString(createdXml),
386
XmlElement expiresXml =
XmlHelper
.GetChildElement(child, UtilityStrings.ExpiresElement, UtilityStrings.Namespace);
389
expires = DateTime.ParseExact(
XmlHelper
.ReadTextElementAsTrimmedString(expiresXml),
524
XmlElement combinedHashElement =
XmlHelper
.GetChildElement(element);
527
string authenticatorString =
XmlHelper
.ReadTextElementAsTrimmedString(combinedHashElement);
602
XmlElement tokenXml =
XmlHelper
.GetChildElement(element);
630
issuedTokenXml =
XmlHelper
.GetChildElement(elem);
638
proofTokenXml =
XmlHelper
.GetChildElement(elem);
870
XmlHelper
.OnRequiredAttributeMissing("EncodingType", elem.Name);
874
XmlHelper
.OnRequiredAttributeMissing("ValueType", elem.Name);
876
string encodedBlob =
XmlHelper
.ReadTextElementAsTrimmedString(elem);
903
issuedTokenXml =
XmlHelper
.GetChildElement(child);
907
requestedUnattachedReference = GetKeyIdentifierXmlReferenceClause(
XmlHelper
.GetChildElement(child));
1043
XmlHelper
.AddNamespaceDeclaration(writer, DriverDictionary.Prefix.Value, DriverDictionary.Namespace);
1136
XmlHelper
.AddNamespaceDeclaration(writer, UtilityStrings.Prefix, XD.UtilityDictionary.Namespace);
1281
keySize = Int32.Parse(
XmlHelper
.ReadTextElementAsTrimmedString(element), NumberFormatInfo.InvariantInfo);
System\ServiceModel\Security\WSTrustFeb2005.cs (3)
136
issuedTokenXml =
XmlHelper
.GetChildElement(child);
140
requestedAttachedReference = GetKeyIdentifierXmlReferenceClause(
XmlHelper
.GetChildElement(child));
144
requestedUnattachedReference = GetKeyIdentifierXmlReferenceClause(
XmlHelper
.GetChildElement(child));