Class AMNetDelegatePublickeyAuthenticator
Public key authenticator that delegates fingerprint validation to an application callback.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public sealed class AMNetDelegatePublickeyAuthenticator : IAMNetPublickeyAuthenticator
Constructors
| Edit this page View SourceAMNetDelegatePublickeyAuthenticator(Func<string, string, ISshSession, bool>)
Creates a public key authenticator backed by a .NET callback.
Declaration
public AMNetDelegatePublickeyAuthenticator(Func<string, string, ISshSession, bool> authenticate)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<string, string, ISshSession, bool> | authenticate | Callback that receives username, public key fingerprint, and session metadata and returns whether the key should be accepted. |
Methods
| Edit this page View SourceAuthenticate(string, string, ISshSession)
Returns whether the supplied public key fingerprint should be accepted for the user.
Declaration
public bool Authenticate(string username, string incomingFingerprint, ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username requested by the client. |
| string | incomingFingerprint | The fingerprint of the public key presented by the client. |
| ISshSession | session | Session metadata for the connection being authenticated. |
Returns
| Type | Description |
|---|---|
| bool |
|