Class NoneAuthenticationMethod
Provides functionality for "none" authentication method.
public class NoneAuthenticationMethod : AuthenticationMethod, IDisposable
- Inheritance
-
NoneAuthenticationMethod
- Implements
- Inherited Members
Constructors
NoneAuthenticationMethod(string)
Initializes a new instance of the NoneAuthenticationMethod class.
public NoneAuthenticationMethod(string username)
Parameters
username
stringThe 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
SessionThe 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)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~NoneAuthenticationMethod()
Finalizes an instance of the NoneAuthenticationMethod class.
protected ~NoneAuthenticationMethod()