SecurityContext.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Net;
  10. namespace SMBLibrary
  11. {
  12. public class SecurityContext
  13. {
  14. private string m_userName;
  15. private string m_machineName;
  16. private IPEndPoint m_clientEndPoint;
  17. public object AuthenticationContext;
  18. public object AccessToken;
  19. public SecurityContext(string userName, string machineName, IPEndPoint clientEndPoint, object authenticationContext, object accessToken)
  20. {
  21. m_userName = userName;
  22. m_machineName = machineName;
  23. m_clientEndPoint = clientEndPoint;
  24. AuthenticationContext = authenticationContext;
  25. AccessToken = accessToken;
  26. }
  27. public string UserName
  28. {
  29. get
  30. {
  31. return m_userName;
  32. }
  33. }
  34. public string MachineName
  35. {
  36. get
  37. {
  38. return m_machineName;
  39. }
  40. }
  41. public IPEndPoint ClientEndPoint
  42. {
  43. get
  44. {
  45. return m_clientEndPoint;
  46. }
  47. }
  48. }
  49. }