Search Results for

    Class AMNetPasswordAuthenticator

    Secure default password authenticator implementation.

    Inheritance
    object
    AMNetPasswordAuthenticator
    Implements
    IAMNetPasswordAuthenticator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
    Assembly: ApacheMinaSSHD.NET.Wrapper.dll
    Syntax
    public class AMNetPasswordAuthenticator : IAMNetPasswordAuthenticator
    Remarks

    This implementation denies all passwords. Override Authenticate(string, string, ISshSession), use AMNetDelegatePasswordAuthenticator, or provide your own IAMNetPasswordAuthenticator to enforce application password policy.

    Constructors

    | Edit this page View Source

    AMNetPasswordAuthenticator()

    Creates a default password authenticator.

    Declaration
    public AMNetPasswordAuthenticator()

    Methods

    | Edit this page View Source

    Authenticate(string, string, ISshSession)

    Returns whether the supplied username and password should be accepted.

    Declaration
    public virtual 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