Search Results for

    Class AMNetDelegatePublickeyAuthenticator

    Public key authenticator that delegates fingerprint validation to an application callback.

    Inheritance
    object
    AMNetDelegatePublickeyAuthenticator
    Implements
    IAMNetPublickeyAuthenticator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
    Assembly: ApacheMinaSSHD.NET.Wrapper.dll
    Syntax
    public sealed class AMNetDelegatePublickeyAuthenticator : IAMNetPublickeyAuthenticator

    Constructors

    | Edit this page View Source

    AMNetDelegatePublickeyAuthenticator(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 Source

    Authenticate(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

    true to accept the public key; otherwise false.

    Implements

    IAMNetPublickeyAuthenticator
    • Edit this page
    • View Source
    In this article
    Back to top Porta SFTP ServerGitHubApacheMinaSSHD.NET Generated by DocFX