Class AuthenticationMechanism
  
  The base class for an authentication mechanism.
 
  
  
    Inheritance
    
    AuthenticationMechanism
      
   
  
  
  
  Assembly: FubarDev.FtpServer.Abstractions.dll
  Syntax
  
    public abstract class AuthenticationMechanism : IAuthenticationMechanism
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AuthenticationMechanism(IFtpConnection)
  
  
  Declaration
  
    protected AuthenticationMechanism(IFtpConnection connection)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | IFtpConnection | 
        connection | 
        The required FTP connection. 
 | 
      
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Connection
  
  
  Declaration
  
    public IFtpConnection Connection { get; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CanHandle(String)
  
  
  Declaration
  
    public abstract bool CanHandle(string methodIdentifier)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | String | 
        methodIdentifier | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  HandleAdatAsync(Byte[], CancellationToken)
  
  
  Declaration
  
    public abstract Task<IFtpResponse> HandleAdatAsync(byte[] data, CancellationToken cancellationToken)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  HandleAuthAsync(String, CancellationToken)
  
  
  Declaration
  
    public abstract Task<IFtpResponse> HandleAuthAsync(string methodIdentifier, CancellationToken cancellationToken)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  HandlePbszAsync(Int64, CancellationToken)
  
  
  Declaration
  
    public abstract Task<IFtpResponse> HandlePbszAsync(long size, CancellationToken cancellationToken)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  HandleProtAsync(String, CancellationToken)
  
  
  Declaration
  
    public abstract Task<IFtpResponse> HandleProtAsync(string protCode, CancellationToken cancellationToken)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Reset()
  
  
  Declaration
  
    public abstract void Reset()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  T(String)
  Translates a message using the current catalog of the active connection.
 
  
  Declaration
  
    protected string T(string message)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | String | 
        message | 
        The message to translate. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | String | 
        The translated message. 
 | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  T(String, Object[])
  Translates a message using the current catalog of the active connection.
 
  
  Declaration
  
    [StringFormatMethod("message")]
protected string T(string message, params object[] args)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | String | 
        message | 
        The message to translate. 
 | 
      
      
        | Object[] | 
        args | 
        The format arguments. 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | String | 
        The translated message. 
 | 
      
    
  
  Implements