C# Class Renci.SshNet.PasswordAuthenticationMethod

Provides functionality to perform password authentication.
Inheritance: AuthenticationMethod, IDisposable
Show file Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
Authenticate ( Session session ) : AuthenticationResult

Authenticates the specified session.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

PasswordAuthenticationMethod ( string username, byte password ) : System

Initializes a new instance of the PasswordAuthenticationMethod class.

PasswordAuthenticationMethod ( string username, string password ) : System

Initializes a new instance of the PasswordAuthenticationMethod class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Private Methods

Method Description
Session_UserAuthenticationFailureReceived ( object sender, MessageEventArgs e ) : void
Session_UserAuthenticationPasswordChangeRequiredReceived ( object sender, MessageEventArgs e ) : void
Session_UserAuthenticationSuccessReceived ( object sender, MessageEventArgs e ) : void

Method Details

Authenticate() public method

Authenticates the specified session.
is null.
public Authenticate ( Session session ) : AuthenticationResult
session Session The session to authenticate.
return AuthenticationResult

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

PasswordAuthenticationMethod() public method

Initializes a new instance of the PasswordAuthenticationMethod class.
is whitespace or null. is null.
public PasswordAuthenticationMethod ( string username, byte password ) : System
username string The username.
password byte The password.
return System

PasswordAuthenticationMethod() public method

Initializes a new instance of the PasswordAuthenticationMethod class.
is whitespace or null. is null.
public PasswordAuthenticationMethod ( string username, string password ) : System
username string The username.
password string The password.
return System