C# Class Renci.SshNet.PrivateKeyAuthenticationMethod

Provides functionality to perform private key authentication.
Inheritance: AuthenticationMethod, IDisposable
Datei anzeigen 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.

PrivateKeyAuthenticationMethod ( string username ) : System

Initializes a new instance of the PrivateKeyAuthenticationMethod 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_UserAuthenticationPublicKeyReceived ( object sender, MessageEventArgs e ) : void
Session_UserAuthenticationSuccessReceived ( object sender, MessageEventArgs e ) : void

Method Details

Authenticate() public method

Authenticates the specified session.
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

PrivateKeyAuthenticationMethod() public method

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