Search Results for

    Class AMNetDelegatePasswordAuthenticator

    Password authenticator that delegates validation to an application callback.

    Inheritance
    object
    AMNetDelegatePasswordAuthenticator
    Implements
    IAMNetPasswordAuthenticator
    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 AMNetDelegatePasswordAuthenticator : IAMNetPasswordAuthenticator

    Constructors

    | Edit this page View Source

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

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

    true to accept the credentials; otherwise false.

    Implements

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