[msvc] Update csproj files
[mono.git] / mcs / class / System / System.Net / AuthenticationManager.cs
index 0fd7d333c824c6544546c182c4730e30ceb2dea3..98200b45b4a01ad613756f7d16839f978ce1e08f 100644 (file)
 //
 
 using System.Collections;
+using System.Collections.Specialized;
 using System.Configuration;
-#if NET_2_0
 using System.Net.Configuration;
-#endif
 
 namespace System.Net
 {
-       public class AuthenticationManager
-       {
+       public class AuthenticationManager {
                static ArrayList modules;
                static object locker = new object ();
 
@@ -53,7 +51,11 @@ namespace System.Net
                                        return;
                                
                                modules = new ArrayList ();
-#if NET_2_0 && CONFIGURATION_DEP
+#if MOBILE
+                               modules.Add (new NtlmClient ());
+                               modules.Add (new DigestClient ());
+                               modules.Add (new BasicClient ());
+#elif CONFIGURATION_DEP
                                object cfg = ConfigurationManager.GetSection ("system.net/authenticationModules");
                                AuthenticationModulesSection s = cfg as AuthenticationModulesSection;
                                if (s != null) {
@@ -72,6 +74,31 @@ namespace System.Net
                        }
                }
                
+               static ICredentialPolicy credential_policy = null;
+               
+               public static ICredentialPolicy CredentialPolicy
+               {
+                       get {
+                               return(credential_policy);
+                                                       }
+                       set {
+                               credential_policy = value;
+                       }
+               }
+               
+               static Exception GetMustImplement ()
+               {
+                       return new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               public static StringDictionary CustomTargetNameDictionary
+               {
+                       get {
+                               throw GetMustImplement ();
+                       }
+               }
+
                public static IEnumerator RegisteredModules {
                        get {
                                EnsureModules ();
@@ -79,6 +106,13 @@ namespace System.Net
                        }
                }
 
+               [MonoTODO]
+               internal static bool OSSupportsExtendedProtection {
+                       get {
+                               return false;
+                       }
+               }
+
                internal static void Clear ()
                {
                        EnsureModules ();
@@ -109,7 +143,7 @@ namespace System.Net
                                        if (auth == null)
                                                continue;
 
-                                       auth.Module = mod;
+                                       auth.ModuleAuthenticationType = mod.AuthenticationType;
                                        return auth;
                                }
                        }
@@ -132,7 +166,7 @@ namespace System.Net
                                        if (auth == null)
                                                continue;
 
-                                       auth.Module = mod;
+                                       auth.ModuleAuthenticationType = mod.AuthenticationType;
                                        return auth;
                                }
                        }