SecurityContext.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 SecurityContext(string userName, string machineName, IPEndPoint clientEndPoint)
  18. {
  19. m_userName = userName;
  20. m_machineName = machineName;
  21. m_clientEndPoint = clientEndPoint;
  22. }
  23. public string UserName
  24. {
  25. get
  26. {
  27. return m_userName;
  28. }
  29. }
  30. public string MachineName
  31. {
  32. get
  33. {
  34. return m_machineName;
  35. }
  36. }
  37. public IPEndPoint ClientEndPoint
  38. {
  39. get
  40. {
  41. return m_clientEndPoint;
  42. }
  43. }
  44. }
  45. }