IConnectionInfoInternal.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.Collections.Generic;
  2. using Renci.SshNet.Messages.Authentication;
  3. namespace Renci.SshNet
  4. {
  5. /// <summary>
  6. /// Represents remote connection information.
  7. /// </summary>
  8. internal interface IConnectionInfoInternal : IConnectionInfo
  9. {
  10. /// <summary>
  11. /// Signals that an authentication banner message was received from the server.
  12. /// </summary>
  13. /// <param name="sender">The session in which the banner message was received.</param>
  14. /// <param name="e">The banner message.</param>
  15. void UserAuthenticationBannerReceived(object sender, MessageEventArgs<BannerMessage> e);
  16. /// <summary>
  17. /// Gets the supported authentication methods for this connection.
  18. /// </summary>
  19. /// <value>
  20. /// The supported authentication methods for this connection.
  21. /// </value>
  22. IList<IAuthenticationMethod> AuthenticationMethods { get; }
  23. /// <summary>
  24. /// Creates a <see cref="NoneAuthenticationMethod"/> for the credentials represented
  25. /// by the current <see cref="IConnectionInfo"/>.
  26. /// </summary>
  27. /// <returns>
  28. /// A <see cref="NoneAuthenticationMethod"/> for the credentials represented by the
  29. /// current <see cref="IConnectionInfo"/>.
  30. /// </returns>
  31. IAuthenticationMethod CreateNoneAuthenticationMethod();
  32. }
  33. }