Dart.Ftp Namespace > TcpBase Class > AuthenticateAsClient Method : AuthenticateAsClient(ClientSecurity) Method |
<SecuritySafeCriticalAttribute()> <ObsoleteAttribute("Use AuthenticateAsClient(TcpSession) instead.")> Public Overloads Sub AuthenticateAsClient( _ ByVal security As ClientSecurity _ )
Dim instance As TcpBase Dim security As ClientSecurity instance.AuthenticateAsClient(security)
[SecuritySafeCritical()] [Obsolete("Use AuthenticateAsClient(TcpSession) instead.")] public void AuthenticateAsClient( ClientSecurity security )
[SecuritySafeCritical()] [Obsolete("Use AuthenticateAsClient(TcpSession) instead.")] public: void AuthenticateAsClient( 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.