EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElSecureServer.OnCertificateValidate

TElSecureServer     See also    


 

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

 
 

Declaration

[C#]
    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;

[VB6]
    Event IElSecureServerXEvents.OnCertificateValidate(Certificate As Byte(), Validate As Boolean)

[ActiveX]
    HRESULT IElSecureServerXEvents.OnCertificateValidate([in] VARIANT Certificate, [out] VARIANT_BOOL * Validate);

[DLL]
    __stdcall void SBServerSetOnCertificateValidate(HANDLE handle, OnCertificateValidateProc code, long UserData);
    __stdcall (*OnCertificateValidateProc)(HANDLE handle, long UserData, HANDLE hX509handle, int* Validate);
 
 

Parameters

  • [DLL]handle - handle to the TElSecureServer object that was returned by Constructor
  • [DLL]Code - pointer to the callback function that is called when connection is opened
  • [DLL]UserData - application-defined data that is passed back to the callback function
  • Certificate - Contains the certificate to be validated. [ActiveX]The value contains the row certificate data in the single-dimentional zero-based array of char (BYTE) values. The certificate can be parsed by creating an instance of TElCertificateX class and using it's LoadFromBuffer method to set the data buffer.
  • 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 TElSecureServer when the negotiated protocol offers the server to validate the client'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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation