| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System.Collections.Generic;
- using System.Text;
- using Renci.SshNet.Messages.Authentication;
- namespace Renci.SshNet
- {
- /// <summary>
- /// Represents remote connection information.
- /// </summary>
- internal interface IConnectionInfo
- {
- /// <summary>
- /// Gets the character encoding.
- /// </summary>
- /// <value>
- /// The character encoding.
- /// </value>
- Encoding Encoding { get; }
- /// <summary>
- /// Gets the supported authentication methods for this connection.
- /// </summary>
- /// <value>
- /// The supported authentication methods for this connection.
- /// </value>
- IEnumerable<IAuthenticationMethod> AuthenticationMethods { get; }
- /// <summary>
- /// Signals that an authentication banner message was received from the server.
- /// </summary>
- /// <param name="sender">The session in which the banner message was received.</param>
- /// <param name="e">The banner message.{</param>
- void UserAuthenticationBannerReceived(object sender, MessageEventArgs<BannerMessage> e);
- /// <summary>
- /// Creates a <see cref="NoneAuthenticationMethod"/> for the credentials represented
- /// by the current <see cref="IConnectionInfo"/>.
- /// </summary>
- /// <returns>
- /// A <see cref="NoneAuthenticationMethod"/> for the credentials represented by the
- /// current <see cref="IConnectionInfo"/>.
- /// </returns>
- IAuthenticationMethod CreateNoneAuthenticationMethod();
- }
- }
|