Dart.Ftp Namespace > TcpBase Class > AuthenticateAsClientTaskAsync Method : AuthenticateAsClientTaskAsync(ClientSecurity) Method |
<SecuritySafeCriticalAttribute()> <ObsoleteAttribute("Use AuthenticateAsClientTaskAsync(TcpSession) instead.")> Public Overloads Function AuthenticateAsClientTaskAsync( _ ByVal security As ClientSecurity _ ) As Task
Dim instance As TcpBase Dim security As ClientSecurity Dim value As Task value = instance.AuthenticateAsClientTaskAsync(security)
[SecuritySafeCritical()] [Obsolete("Use AuthenticateAsClientTaskAsync(TcpSession) instead.")] public Task AuthenticateAsClientTaskAsync( ClientSecurity security )
[SecuritySafeCritical()] [Obsolete("Use AuthenticateAsClientTaskAsync(TcpSession) instead.")] public: Task^ AuthenticateAsClientTaskAsync( ClientSecurity^ security )
The security.TargetHost should match the server certificate name. If authentication fails, an AuthenticationException will occur.
To accept or reject a certificate "on-the-fly" implement a ClientSecurity.ValidationCallback function.
To select a client certificate "on-the-fly" implement a ClientSecurity.SelectionCallback function.