Class AMNetFixedPasswordAuthenticator
Password authenticator for a single fixed username and password pair.
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public sealed class AMNetFixedPasswordAuthenticator : IAMNetPasswordAuthenticator, IDisposable
Remarks
This class is useful for samples, tests, embedded appliances, or simple deployments. Production applications should normally validate credentials against their own identity store and auditing policy.
Constructors
| Edit this page View SourceAMNetFixedPasswordAuthenticator(string, string)
Creates a fixed password authenticator.
Declaration
public AMNetFixedPasswordAuthenticator(string username, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The exact username to accept. |
| string | password | The exact password to accept. |
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied username and password should be accepted.
Declaration
public bool Authenticate(string username, string password, ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username requested by the client. |
| string | password | The password supplied by the client. |
| ISshSession | session | Session metadata for the connection being authenticated. |
Returns
| Type | Description |
|---|---|
| bool |
|
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()