ICertificateConfig.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Security.Cryptography.X509Certificates;
  5. namespace SuperSocket.SocketBase.Config
  6. {
  7. /// <summary>
  8. /// Certificate configuration interface
  9. /// </summary>
  10. public interface ICertificateConfig
  11. {
  12. /// <summary>
  13. /// Gets the file path.
  14. /// </summary>
  15. string FilePath { get; }
  16. /// <summary>
  17. /// Gets the password.
  18. /// </summary>
  19. string Password { get; }
  20. /// <summary>
  21. /// Gets the the store where certificate locates.
  22. /// </summary>
  23. /// <value>
  24. /// The name of the store.
  25. /// </value>
  26. string StoreName { get; }
  27. /// <summary>
  28. /// Gets the thumbprint.
  29. /// </summary>
  30. string Thumbprint { get; }
  31. /// <summary>
  32. /// Gets the store location of the certificate.
  33. /// </summary>
  34. /// <value>
  35. /// The store location.
  36. /// </value>
  37. StoreLocation StoreLocation { get; }
  38. /// <summary>
  39. /// Gets a value indicating whether [client certificate required].
  40. /// </summary>
  41. /// <value>
  42. /// <c>true</c> if [client certificate required]; otherwise, <c>false</c>.
  43. /// </value>
  44. bool ClientCertificateRequired { get; }
  45. /// <summary>
  46. /// Gets a value that will be used to instantiate the X509Certificate2 object in the CertificateManager
  47. /// </summary>
  48. X509KeyStorageFlags KeyStorageFlags { get; }
  49. }
  50. }