Class NoneAuthenticationMethod
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Provides functionality for "none" authentication method.
public class NoneAuthenticationMethod : AuthenticationMethod, IDisposable
Inheritance
Implements
Inherited Members
Constructors
NoneAuthenticationMethod(string)
Initializes a new instance of the Renci.SshNet.NoneAuthenticationMethod class.
public NoneAuthenticationMethod(string username)
Parameters
username
string-
The username.
Exceptions
- ArgumentException
-
username
is 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
session
Session-
The session.
Returns
- AuthenticationResult
-
Result of authentication process.
Exceptions
- ArgumentNullException
-
session
is null.
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)