PowerTCP Telnet for .NET CF
AuthenticateAsServer(X509Certificate,Boolean,SslProtocols,Boolean,RemoteCertificateValidationCallback) Method
See Also  Send comments on this topic.
Dart.Common Namespace > TcpBase Class > AuthenticateAsServer Method : AuthenticateAsServer(X509Certificate,Boolean,SslProtocols,Boolean,RemoteCertificateValidationCallback) Method




serverCertificate
The certificate to provide the client.
clientCertificateRequired
Whether or not the client is required to provide a certificate.
enabledSslProtocols
The enabled SSL protocols.
checkCertificateRevocation
Whether or not the certificate revocation list is checked during authentication.
userCertificateValidationCallback
The callback function that executes after the client presents its certificate.
Authenticates a client when establishing a secure connection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AuthenticateAsServer( _
   ByVal serverCertificate As X509Certificate, _
   ByVal clientCertificateRequired As Boolean, _
   ByVal enabledSslProtocols As SslProtocols, _
   ByVal checkCertificateRevocation As Boolean, _
   ByVal userCertificateValidationCallback As RemoteCertificateValidationCallback _
) 
Visual Basic (Usage)Copy Code
Dim instance As TcpBase
Dim serverCertificate As X509Certificate
Dim clientCertificateRequired As Boolean
Dim enabledSslProtocols As SslProtocols
Dim checkCertificateRevocation As Boolean
Dim userCertificateValidationCallback As RemoteCertificateValidationCallback
 
instance.AuthenticateAsServer(serverCertificate, clientCertificateRequired, enabledSslProtocols, checkCertificateRevocation, userCertificateValidationCallback)

Parameters

serverCertificate
The certificate to provide the client.
clientCertificateRequired
Whether or not the client is required to provide a certificate.
enabledSslProtocols
The enabled SSL protocols.
checkCertificateRevocation
Whether or not the certificate revocation list is checked during authentication.
userCertificateValidationCallback
The callback function that executes after the client presents its certificate.

Remarks

To accept or reject a certificate "on-the-fly" implement a userCertificateValidationCallback function.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.