Class KeyboardInteractiveAuthenticationMethod
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Provides functionality to perform keyboard interactive authentication.
public class KeyboardInteractiveAuthenticationMethod : AuthenticationMethod, IDisposableInheritance
Implements
Inherited Members
Constructors
KeyboardInteractiveAuthenticationMethod(string)
Initializes a new instance of the Renci.SshNet.KeyboardInteractiveAuthenticationMethod class.
public KeyboardInteractiveAuthenticationMethod(string username)Parameters
usernamestring-
The username.
Exceptions
- ArgumentException
-
usernameis whitespace or null.
Properties
Name
Gets the name of the authentication method.
public override string Name { get; }Property Value
Methods
Authenticate(Session)
Authenticates the specified session.
public override AuthenticationResult Authenticate(Session session)Parameters
sessionSession-
The session to authenticate.
Returns
- AuthenticationResult
-
Result of authentication process.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
true to release both managed and unmanaged resources; false to release only unmanaged resources.
AuthenticationPrompt
Occurs when server prompts for more authentication information.
public event EventHandler<AuthenticationPromptEventArgs> AuthenticationPrompt