SecureBlackbox

200+ components and classes for all aspects of digital security of your data

Filter: C#/Java  VB.NET  Pascal  C++  


TElSSLClient.OnCertificateValidate

TElSSLClient     See also     


 

This event is fired when the server certificate must be validated.

 

Declaration

[C#/Java]
    event TSBCertificateValidateEvent OnCertificateValidate;
    delegate void TSBCertificateValidateEvent(object Sender, TElX509Certificate X509Certificate, ref bool Validate)

[VB.NET]
    Event OnCertificateValidate As TSBCertificateValidateEvent
    Delegate Sub TSBCertificateValidateEvent(ByVal Sender As Object, ByVal X509Certificate As TElX509Certificate, ByRef Validate As Boolean)

[Pascal]
    property OnCertificateValidate : TSBCertificateValidateEvent;
    TSBCertificateValidateEvent = procedure(Sender: TObject; X509Certificate: TElX509Certificate; var Validate: boolean) of object;

[C++]
    not implemented;

   

Parameters

  • Certificate - Contains the certificate to be validated.
  • Validate - set this parameter to true (1) if the certificate is valid and should be accepted and false (0) otherwise
   

Description

    This event is fired by TElSSLClient when the negotiated protocol offers the client to validate the server's certificate, starting from the root CA to the end-entity certificate. One can check, whether the certificate is an end-entity one, by checking the certificate's Chain property. Use methods of the TElX509Certificate class to perform the certificate validation.

   

See also:     TElX509Certificate    

 
Back to top