protected override System.Xml.UniqueId ReadGeneration(XmlDictionaryReader reader) { return(XmlHelper.GetAttributeAsUniqueId( reader, this.Parent.SecurityTokenSerializer.DictionaryManager.SecureConversationDec2005Dictionary.Instance, this.Parent.SecurityTokenSerializer.DictionaryManager.SecureConversationFeb2005Dictionary.Namespace)); }
public override SecurityKeyIdentifierClause ReadClause(XmlDictionaryReader reader, byte[] derivationNonce, int derivationLength, string tokenType) { UniqueId contextId = XmlHelper.GetAttributeAsUniqueId(reader, XD.SecurityJan2004Dictionary.URI, null); UniqueId generation = this.ReadGeneration(reader); if (reader.IsEmptyElement) { reader.Read(); } else { reader.ReadStartElement(); while (reader.IsStartElement()) { reader.Skip(); } reader.ReadEndElement(); } return(new SecurityContextKeyIdentifierClause(contextId, generation, derivationNonce, derivationLength)); }
protected override UniqueId ReadGeneration(XmlDictionaryReader reader) { return(XmlHelper.GetAttributeAsUniqueId(reader, DXD.SecureConversationDec2005Dictionary.Instance, DXD.SecureConversationDec2005Dictionary.Namespace)); }