Show / Hide Table of Contents

    Interface IAuthenticationMechanism

    The interface for an authentication mechanism.

    Namespace: FubarDev.FtpServer.Authentication
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public interface IAuthenticationMechanism

    Methods

    | Improve this Doc View Source

    CanHandle(String)

    Returns a value indicating whether a mechanism with the given methodIdentifier is supported by this implementor.

    Declaration
    bool CanHandle(string methodIdentifier)
    Parameters
    Type Name Description
    String methodIdentifier

    The method identifier.

    Returns
    Type Description
    Boolean

    true when the given methodIdentifier is supported by this implementor.

    | Improve this Doc View Source

    HandleAdatAsync(Byte[], CancellationToken)

    Processes the ADAT command.

    Declaration
    Task<IFtpResponse> HandleAdatAsync(byte[] data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] data

    The data passed to the ADAT command.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IFtpResponse>

    The response to return.

    | Improve this Doc View Source

    HandleAuthAsync(String, CancellationToken)

    Processes the AUTH command.

    Declaration
    Task<IFtpResponse> HandleAuthAsync(string methodIdentifier, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    String methodIdentifier

    The method identifier.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IFtpResponse>

    The response to return.

    Remarks

    If this handler doesn't support the passed methodIdentifier, then it should respond with either 502 or 504.

    | Improve this Doc View Source

    HandlePbszAsync(Int64, CancellationToken)

    Processes the PBSZ command.

    Declaration
    Task<IFtpResponse> HandlePbszAsync(long size, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Int64 size

    The protected buffer size passed to the PBSZ command.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IFtpResponse>

    The response to return.

    | Improve this Doc View Source

    HandleProtAsync(String, CancellationToken)

    Processes the PROT command.

    Declaration
    Task<IFtpResponse> HandleProtAsync(string protCode, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    String protCode

    The code passed to the PROT command.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task<IFtpResponse>

    The response to return.

    | Improve this Doc View Source

    Reset()

    Resets the authentication mechanism.

    Declaration
    void Reset()
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.