You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB
C#

9 months ago
using System.Collections.Generic;
namespace Renci.SshNet
{
/// <summary>
/// Base interface for authentication of a session using a given method.
/// </summary>
internal interface IAuthenticationMethod
{
/// <summary>
/// Authenticates the specified session.
/// </summary>
/// <param name="session">The session to authenticate.</param>
/// <returns>
/// The result of the authentication process.
/// </returns>
AuthenticationResult Authenticate(ISession session);
/// <summary>
/// Gets the list of allowed authentications.
/// </summary>
/// <value>
/// The list of allowed authentications.
/// </value>
IList<string> AllowedAuthentications { get; }
/// <summary>
/// Gets the name of the authentication method.
/// </summary>
/// <value>
/// The name of the authentication method.
/// </value>
string Name { get; }
}
}