Show / Hide Table of Contents

    Class TlsAuthenticationMechanism

    Implementation for the AUTH TLS command.

    Inheritance
    Object
    AuthenticationMechanism
    TlsAuthenticationMechanism
    Implements
    IAuthenticationMechanism
    IFeatureHost
    Inherited Members
    AuthenticationMechanism.Connection
    AuthenticationMechanism.T(String)
    AuthenticationMechanism.T(String, Object[])
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.Authentication
    Assembly: FubarDev.FtpServer.dll
    Syntax
    [FtpFeatureFunction("CreateAuthTlsFeatureString")]
    public class TlsAuthenticationMechanism : AuthenticationMechanism, IAuthenticationMechanism, IFeatureHost

    Constructors

    | Improve this Doc View Source

    TlsAuthenticationMechanism(IFtpConnection, ISslStreamWrapperFactory)

    Initializes a new instance of the TlsAuthenticationMechanism class.

    Declaration
    public TlsAuthenticationMechanism(IFtpConnection connection, ISslStreamWrapperFactory sslStreamWrapperFactory)
    Parameters
    Type Name Description
    IFtpConnection connection

    The required FTP connection.

    ISslStreamWrapperFactory sslStreamWrapperFactory

    The SslStream wrapper factory.

    Methods

    | Improve this Doc View Source

    CanHandle(String)

    Declaration
    public override bool CanHandle(string methodIdentifier)
    Parameters
    Type Name Description
    String methodIdentifier
    Returns
    Type Description
    Boolean
    Overrides
    AuthenticationMechanism.CanHandle(String)
    | Improve this Doc View Source

    CreateAuthTlsFeatureString(IFtpConnection)

    Build a string to be returned by the FEAT command handler.

    Declaration
    public static IEnumerable<string> CreateAuthTlsFeatureString(IFtpConnection connection)
    Parameters
    Type Name Description
    IFtpConnection connection

    The FTP connection.

    Returns
    Type Description
    IEnumerable<String>

    The string(s) to be returned.

    | Improve this Doc View Source

    GetSupportedFeatures(IFtpConnection)

    Gets a collection of features supported by this command handler.

    Declaration
    [Obsolete("FTP command handlers (and other types) are now annotated with attributes implementing IFeatureInfo.")]
    public IEnumerable<IFeatureInfo> GetSupportedFeatures(IFtpConnection connection)
    Parameters
    Type Name Description
    IFtpConnection connection

    The FTP connection.

    Returns
    Type Description
    IEnumerable<IFeatureInfo>

    A list of features supported by this command handler.

    | Improve this Doc View Source

    HandleAdatAsync(Byte[], CancellationToken)

    Declaration
    public override Task<IFtpResponse> HandleAdatAsync(byte[] data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Byte[] data
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IFtpResponse>
    Overrides
    AuthenticationMechanism.HandleAdatAsync(Byte[], CancellationToken)
    | Improve this Doc View Source

    HandleAuthAsync(String, CancellationToken)

    Declaration
    public override Task<IFtpResponse> HandleAuthAsync(string methodIdentifier, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    String methodIdentifier
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IFtpResponse>
    Overrides
    AuthenticationMechanism.HandleAuthAsync(String, CancellationToken)
    | Improve this Doc View Source

    HandlePbszAsync(Int64, CancellationToken)

    Declaration
    public override Task<IFtpResponse> HandlePbszAsync(long size, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Int64 size
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IFtpResponse>
    Overrides
    AuthenticationMechanism.HandlePbszAsync(Int64, CancellationToken)
    | Improve this Doc View Source

    HandleProtAsync(String, CancellationToken)

    Declaration
    public override Task<IFtpResponse> HandleProtAsync(string protCode, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    String protCode
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IFtpResponse>
    Overrides
    AuthenticationMechanism.HandleProtAsync(String, CancellationToken)
    | Improve this Doc View Source

    Reset()

    Declaration
    public override void Reset()
    Overrides
    AuthenticationMechanism.Reset()

    Implements

    IAuthenticationMechanism
    IFeatureHost
    • 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.