AuthenticationManager.cs 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.Net.AuthenticationManager.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Collections;
  10. namespace System.Net {
  11. public class AuthenticationManager {
  12. static ArrayList modules;
  13. public static IEnumerator RegisteredModules {
  14. get {
  15. if (modules == null)
  16. modules = new ArrayList ();
  17. return modules as IEnumerator;
  18. }
  19. }
  20. public static Authorization PreAuthenticate (WebRequest request,
  21. ICredentials credentials)
  22. {
  23. // FIXME: implement
  24. return null;
  25. }
  26. public static void Register (IAuthenticationModule authenticationModule)
  27. {
  28. if (modules == null)
  29. modules = new ArrayList ();
  30. modules.Add (authenticationModule);
  31. }
  32. public static void Unregister (IAuthenticationModule authenticationModule)
  33. {
  34. // FIXME: implement
  35. }
  36. public static void Unregister (string authenticationScheme)
  37. {
  38. // FIXME: implement
  39. }
  40. }
  41. }