Show / Hide Table of Contents

    Class PasswordAuthorization

    The default password authentication mechanism.

    Inheritance
    Object
    AuthorizationMechanism
    PasswordAuthorization
    Implements
    IAuthorizationMechanism
    Inherited Members
    AuthorizationMechanism.Connection
    AuthorizationMechanism.T(String)
    AuthorizationMechanism.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.Authorization
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public class PasswordAuthorization : AuthorizationMechanism, IAuthorizationMechanism

    Constructors

    | Improve this Doc View Source

    PasswordAuthorization(IFtpConnection, IEnumerable<IMembershipProvider>, IEnumerable<IAuthorizationAction>, IFtpServerMessages)

    Initializes a new instance of the PasswordAuthorization class.

    Declaration
    public PasswordAuthorization(IFtpConnection connection, IEnumerable<IMembershipProvider> membershipProviders, IEnumerable<IAuthorizationAction> authorizationActions, IFtpServerMessages serverMessages)
    Parameters
    Type Name Description
    IFtpConnection connection

    The required FTP connection.

    IEnumerable<IMembershipProvider> membershipProviders

    The membership providers for password authorization.

    IEnumerable<IAuthorizationAction> authorizationActions

    Actions to be executed upon authorization.

    IFtpServerMessages serverMessages

    The FTP server messages.

    Methods

    | Improve this Doc View Source

    HandleAcctAsync(String, CancellationToken)

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

    HandlePassAsync(String, CancellationToken)

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

    HandleUserAsync(String, CancellationToken)

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

    Reset(Nullable<IAuthenticationMechanism>)

    Declaration
    public override void Reset(IAuthenticationMechanism? authenticationMechanism)
    Parameters
    Type Name Description
    Nullable<IAuthenticationMechanism> authenticationMechanism
    Overrides
    AuthorizationMechanism.Reset(Nullable<IAuthenticationMechanism>)

    Implements

    IAuthorizationMechanism
    • 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.