Search Results for

    Class AMNetFixedPasswordAuthenticator

    Password authenticator for a single fixed username and password pair.

    Inheritance
    object
    AMNetFixedPasswordAuthenticator
    Implements
    IAMNetPasswordAuthenticator
    IDisposable
    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 AMNetFixedPasswordAuthenticator : IAMNetPasswordAuthenticator, IDisposable
    Remarks

    This class is useful for samples, tests, embedded appliances, or simple deployments. Production applications should normally validate credentials against their own identity store and auditing policy.

    Constructors

    | Edit this page View Source

    AMNetFixedPasswordAuthenticator(string, string)

    Creates a fixed password authenticator.

    Declaration
    public AMNetFixedPasswordAuthenticator(string username, string password)
    Parameters
    Type Name Description
    string username

    The exact username to accept.

    string password

    The exact password to accept.

    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.

    | Edit this page View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Implements

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