Class KeyboardInteractiveAuthenticationMethod
Provides functionality to perform keyboard interactive authentication.
public class KeyboardInteractiveAuthenticationMethod : AuthenticationMethod, IDisposable
- Inheritance
-
KeyboardInteractiveAuthenticationMethod
- Implements
- Inherited Members
Constructors
KeyboardInteractiveAuthenticationMethod(string)
Initializes a new instance of the KeyboardInteractiveAuthenticationMethod class.
public KeyboardInteractiveAuthenticationMethod(string username)
Parameters
username
stringThe username.
Exceptions
- ArgumentException
username
is whitespace or null.
Properties
Name
Gets the name of the authentication method.
public override string Name { get; }
Property Value
- string
The name of the authentication method.
Methods
Authenticate(Session)
Authenticates the specified session.
public override AuthenticationResult Authenticate(Session session)
Parameters
session
SessionThe session to authenticate.
Returns
- AuthenticationResult
Result of authentication process.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~KeyboardInteractiveAuthenticationMethod()
Finalizes an instance of the KeyboardInteractiveAuthenticationMethod class.
protected ~KeyboardInteractiveAuthenticationMethod()
Events
AuthenticationPrompt
Occurs when server prompts for more authentication information.
public event EventHandler<AuthenticationPromptEventArgs> AuthenticationPrompt