C# Класс Renci.SshNet.PrivateKeyAuthenticationMethod

Provides functionality to perform private key authentication.
Наследование: AuthenticationMethod, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Приватные методы

Метод Описание
Session_UserAuthenticationFailureReceived ( object sender, MessageEventArgs e ) : void
Session_UserAuthenticationPublicKeyReceived ( object sender, MessageEventArgs e ) : void
Session_UserAuthenticationSuccessReceived ( object sender, MessageEventArgs e ) : void

Описание методов

Authenticate() публичный метод

Authenticates the specified session.
public Authenticate ( Session session ) : AuthenticationResult
session Session The session to authenticate.
Результат AuthenticationResult

Dispose() публичный метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный метод

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.
Результат void

PrivateKeyAuthenticationMethod() публичный метод

Initializes a new instance of the PrivateKeyAuthenticationMethod class.
is whitespace or null.
public PrivateKeyAuthenticationMethod ( string username ) : System
username string The username.
Результат System