See Also

SslStream Class  | SslStream Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

CertificateReceived Event

Dart.PowerTCP.SslSockets Namespace > SslStream Class : CertificateReceived Event (SslStream)

This event is raised when a certificate has been received to be authenticated.

[Visual Basic]
Public Event CertificateReceived() As CertificateReceivedEventHandler
[C#]
public event CertificateReceivedEventHandler CertificateReceived();
[C++]
public: __event CertificateReceivedEventHandler* CertificateReceived();
[C++/CLI]
public: event CertificateReceivedEventHandler^ CertificateReceived();

Event Data

The event handler receives an argument of type CertificateReceivedEventArgs containing data related to this event. The following CertificateReceivedEventArgs properties provide information specific to this event.

PropertyDescription
Accept Controls whether or not the certificate is accepted.
Certificate The certificate received for authentication.
RemoteEndPoint Returns the endpoint of the remote host.
TrustedRoot Returns whether or not the certificate is from a Trusted Root Authority.
ValidDate Returns whether or not the current time-date is within the certificate's life span.
ValidName Returns whether or not the name is valid.

Remarks

A CertificateReceivedEventArgs object is passed into the event handler, containing information required to determine the validity of the certificate. If the certificate is determined to be invalid (if any of the properties ValidDate, ValidName, or TrustedRoot are false) the certificate is rejected. Accept will be false to signify this. Set Accept to true to override this and accept the certificate.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SslStream Class  | SslStream Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.