IConnectionInfo.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using Renci.SshNet.Messages.Authentication;
  3. namespace Renci.SshNet
  4. {
  5. internal interface IConnectionInfo
  6. {
  7. /// <summary>
  8. /// Gets the supported authentication methods for this connection.
  9. /// </summary>
  10. /// <value>
  11. /// The supported authentication methods for this connection.
  12. /// </value>
  13. IEnumerable<IAuthenticationMethod> AuthenticationMethods { get; }
  14. void UserAuthenticationBannerReceived(object sender, MessageEventArgs<BannerMessage> e);
  15. /// <summary>
  16. /// Creates a <see cref="NoneAuthenticationMethod"/> for the credentials represented
  17. /// by the current <see cref="IConnectionInfo"/>.
  18. /// </summary>
  19. /// <returns>
  20. /// A <see cref="NoneAuthenticationMethod"/> for the credentials represented by the
  21. /// current <see cref="IConnectionInfo"/>.
  22. /// </returns>
  23. IAuthenticationMethod CreateNoneAuthenticationMethod();
  24. }
  25. }