Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FtpClient Class / Authenticate Method / Authenticate(AuthenticationMethod,VerificationFlags,Certificate) Method
The authentication method used to connect to the FTP server.
The verification flags used to verify the FTP server's certificate.
The FTP client's certificate.


In This Topic
    Authenticate(AuthenticationMethod,VerificationFlags,Certificate) Method
    In This Topic
    Authenticates and encrypts the current FTP connection.
    Syntax
    'Declaration
     
    Public Overloads Sub Authenticate( _
       ByVal authenticationMethod As AuthenticationMethod, _
       ByVal verificationFlags As VerificationFlags, _
       ByVal clientCertificate As Certificate _
    ) 
    'Usage
     
    Dim instance As FtpClient
    Dim authenticationMethod As AuthenticationMethod
    Dim verificationFlags As VerificationFlags
    Dim clientCertificate As Certificate
     
    instance.Authenticate(authenticationMethod, verificationFlags, clientCertificate)

    Parameters

    authenticationMethod
    The authentication method used to connect to the FTP server.
    verificationFlags
    The verification flags used to verify the FTP server's certificate.
    clientCertificate
    The FTP client's certificate.
    Remarks

    The Connect method that requires an authentication method, verification flags and a client certificate can be used in the case where the FTP server does not allow authentication after the connection has been established.

    If the FTP server requires a certificate or the one provided was rejected, the CertificateRequired will be raised. When the FTP server's certificate is received and verified, the CertificateReceived event will be raised.

    The Authenticate method will send the AUTH and PROT commands to the FTP server.

    When using this overload of the BeginAuthenticate method, the data channel is not secured (DataChannelProtection.Clear).

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also