Class AMNetDelegatePasswordAuthenticator
Password authenticator that delegates validation to an application callback.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public sealed class AMNetDelegatePasswordAuthenticator : IAMNetPasswordAuthenticator
Constructors
| Edit this page View SourceAMNetDelegatePasswordAuthenticator(Func<string, string, ISshSession, bool>)
Creates a password authenticator backed by a .NET callback.
Declaration
public AMNetDelegatePasswordAuthenticator(Func<string, string, ISshSession, bool> authenticate)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<string, string, ISshSession, bool> | authenticate | Callback that receives username, password, and session metadata and returns whether the credentials should be accepted. |
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 |
|