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();
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.
Property | Description |
---|---|
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. |
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
SslStream Class | SslStream Members
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.