PowerTCP FTP for .NET
AuthenticateAsClientTaskAsync(ClientSecurity) Method



Security parameters used during authentication.
Authenticates the server when establishing a secure connection.
Syntax
<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
) 

Parameters

security
Security parameters used during authentication.

Return Value

An awaitable task that represents the authentication operation.
Remarks

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.

See Also

Reference

TcpBase Class
TcpBase Members
Overload List


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic