using System; using System.Collections.Generic; using System.Text; using Renci.SshNet.Common; using Renci.SshNet.Messages.Authentication; using Renci.SshNet.Messages.Connection; namespace Renci.SshNet { internal interface IConnectionInfoInternal : IConnectionInfo { /// /// Signals that an authentication banner message was received from the server. /// /// The session in which the banner message was received. /// The banner message.{ void UserAuthenticationBannerReceived(object sender, MessageEventArgs e); /// /// Gets the supported authentication methods for this connection. /// /// /// The supported authentication methods for this connection. /// IList AuthenticationMethods { get; } /// /// Creates a for the credentials represented /// by the current . /// /// /// A for the credentials represented by the /// current . /// IAuthenticationMethod CreateNoneAuthenticationMethod(); } /// /// Represents remote connection information. /// internal interface IConnectionInfo { /// /// Gets the supported channel requests for this connection. /// /// /// The supported channel requests for this connection. /// IDictionary ChannelRequests { get; } /// /// Gets the character encoding. /// /// /// The character encoding. /// Encoding Encoding { get; } /// /// Gets the number of retry attempts when session channel creation failed. /// /// /// The number of retry attempts when session channel creation failed. /// int RetryAttempts { get; } /// /// Gets or sets connection timeout. /// /// /// The connection timeout. The default value is 30 seconds. /// /// /// /// TimeSpan Timeout { get; } /// /// Occurs when authentication banner is sent by the server. /// event EventHandler AuthenticationBanner; } }