public static AuthorizationHeader ReadHeader(XmlDictionaryReader reader)
        {
            AuthorizationHeader header = null;

            // Read the header content (key) using the XmlDictionaryReader
            if (reader.ReadToDescendant(Config.AuthorizationTokenName, Config.HeaderNamespace))
                header = new AuthorizationHeader(reader.ReadElementString());

            return header;
        }
Esempio n. 2
0
 public static CustomSecurityHeader ReadHeader(XmlDictionaryReader reader)
 {
     if (reader.ReadToDescendant(CustomHeaderNames.KeyName, CustomHeaderNames.CustomHeaderNamespace))
     {
         String key = reader.ReadElementString();
         return (new CustomSecurityHeader(key));
     }
     else
     {
         return null;
     }
 }