//
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
- {
+#if MOONLIGHT
+ internal class AuthenticationManager {
+#else
+ public class AuthenticationManager {
+#endif
static ArrayList modules;
static object locker = new object ();
return;
modules = new ArrayList ();
-#if NET_2_0 && CONFIGURATION_DEP
+#if NET_2_1
+ modules.Add (new BasicClient ());
+ modules.Add (new DigestClient ());
+ modules.Add (new NtlmClient ());
+#elif NET_2_0 && CONFIGURATION_DEP
object cfg = ConfigurationManager.GetSection ("system.net/authenticationModules");
AuthenticationModulesSection s = cfg as AuthenticationModulesSection;
if (s != null) {
}
}
+ 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 ();