WindowsAuthenticationEventArgs.cs 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // System.Web.Security.WindowsAuthenticationEventArgs
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.Security.Principal;
  11. using System.Web;
  12. namespace System.Web.Security
  13. {
  14. public sealed class WindowsAuthenticationEventArgs : EventArgs
  15. {
  16. WindowsIdentity identity;
  17. HttpContext context;
  18. IPrincipal user;
  19. public WindowsAuthenticationEventArgs (WindowsIdentity identity, HttpContext context)
  20. {
  21. this.identity = identity;
  22. this.context = context;
  23. }
  24. public System.Web.HttpContext Context
  25. {
  26. get {
  27. return context;
  28. }
  29. }
  30. public WindowsIdentity Identity
  31. {
  32. get {
  33. return identity;
  34. }
  35. }
  36. public IPrincipal User
  37. {
  38. get {
  39. return user;
  40. }
  41. set {
  42. user = value;
  43. }
  44. }
  45. }
  46. }