IAuthenticationMethod.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.Collections.Generic;
  2. namespace Renci.SshNet
  3. {
  4. /// <summary>
  5. /// Base interface for authentication of a session using a given method.
  6. /// </summary>
  7. internal interface IAuthenticationMethod
  8. {
  9. /// <summary>
  10. /// Authenticates the specified session.
  11. /// </summary>
  12. /// <param name="session">The session to authenticate.</param>
  13. /// <returns>
  14. /// The result of the authentication process.
  15. /// </returns>
  16. AuthenticationResult Authenticate(ISession session);
  17. /// <summary>
  18. /// Gets the list of allowed authentications.
  19. /// </summary>
  20. /// <value>
  21. /// The list of allowed authentications.
  22. /// </value>
  23. IEnumerable<string> AllowedAuthentications { get; }
  24. /// <summary>
  25. /// Gets the name of the authentication method.
  26. /// </summary>
  27. /// <value>
  28. /// The name of the authentication method.
  29. /// </value>
  30. string Name { get; }
  31. }
  32. }