Class NoneAuthenticationMethod
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Provides functionality for "none" authentication method.
public class NoneAuthenticationMethod : AuthenticationMethod, IDisposableInheritance
Implements
Inherited Members
Constructors
NoneAuthenticationMethod(string)
Initializes a new instance of the Renci.SshNet.NoneAuthenticationMethod class.
public NoneAuthenticationMethod(string username)Parameters
usernamestring-
The username.
Exceptions
- ArgumentException
-
usernameis 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
sessionSession-
The session.
Returns
- AuthenticationResult
-
Result of authentication process.
Exceptions
- ArgumentNullException
-
sessionis null.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)