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