29 using System.Collections.Generic;
30 using System.Collections.Specialized;
34 namespace OpenSim.Framework.ServiceAuth
38 public string Name {
get {
return "Compound"; } }
40 private List<IServiceAuth> m_authentications =
new List<IServiceAuth>();
42 public int Count {
get {
return m_authentications.Count; } }
46 return new List<IServiceAuth>(m_authentications);
51 m_authentications.Add(auth);
56 m_authentications.Remove(auth);
62 auth.AddAuthorization(headers);
67 return m_authentications.TrueForAll(a => a.Authenticate(data));
74 if (!auth.
Authenticate(requestHeaders, d, out statusCode))
78 statusCode = HttpStatusCode.OK;
bool Authenticate(string data)
bool Authenticate(NameValueCollection requestHeaders, AddHeaderDelegate d, out HttpStatusCode statusCode)
void RemoveAuthenticator(IServiceAuth auth)
void AddAuthorization(NameValueCollection headers)
delegate void AddHeaderDelegate(string key, string value)
List< IServiceAuth > GetAuthentors()
void AddAuthenticator(IServiceAuth auth)
bool Authenticate(string data)