Xceed .NET Libraries Documentation
Authenticate(AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection) Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class > Authenticate Method : Authenticate(AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection) 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.
How the data channels will be protected.
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, _
   ByVal dataProtection As DataChannelProtection _
) 
'Usage
 
Dim instance As FtpClient
Dim authenticationMethod As AuthenticationMethod
Dim verificationFlags As VerificationFlags
Dim clientCertificate As Certificate
Dim dataProtection As DataChannelProtection
 
instance.Authenticate(authenticationMethod, verificationFlags, clientCertificate, dataProtection)

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.
dataProtection
How the data channels will be protected.
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.

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

Reference

FtpClient Class
FtpClient Members
Overload List