Discuss this help topic in SecureBlackbox Forum



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

This event is fired when signing certificate of the TSP response needs validation.


    event TSBCertificateValidationEvent OnCertificateValidate;
    delegate void TSBCertificateValidationEvent(Object Sender, TElX509Certificate Certificate, TElCustomCertStorage AdditionalCertificates, ref TSBCertificateValidity Validity, ref TSBCertificateValidityReason Reason, ref bool DoContinue);

    Event OnCertificateValidate As TSBCertificateValidationEvent
    Delegate Sub TSBCertificateValidationEvent(ByVal Sender As Object, ByVal Certificate As TElX509Certificate, ByVal AdditionalCertificates As TElCustomCertStorage, ByRef Validity As TSBCertificateValidity, ByRef Reason As TSBCertificateValidityReason, ByRef DoContinue As Boolean)

    property OnCertificateValidate : TSBCertificateValidationEvent;
    TSBCertificateValidationEvent = procedure (Sender: TObject; Certificate : TElX509Certificate; AdditionalCertificates : TElCustomCertStorage; var Validity : TSBCertificateValidity; var Reason : TSBCertificateValidityReason; var DoContinue : boolean) of object;

    void get_OnCertificateValidate(TSBCertificateValidationEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCertificateValidate(TSBCertificateValidationEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCertificateValidationEvent)(void * _ObjectData, TObjectHandle Sender, TElX509CertificateHandle Certificate, TElCustomCertStorageHandle AdditionalCertificates, TSBCertificateValidityRaw &Validity, TSBCertificateValidityReasonRaw &Reason, int8_t &DoContinue);

    TSBCertificateValidationEvent|callable|NULL get_OnCertificateValidate()
    void set_OnCertificateValidate(TSBCertificateValidationEvent|callable|NULL $Value)
    callable TSBCertificateValidationEvent(TObject $Sender, TElX509Certificate $Certificate, TElCustomCertStorage $AdditionalCertificates, integer &$Validity, integer &$Reason, bool &$DoContinue)


  • Certificate - the certificate that is being validated.
  • AdditionalCertificates - additional certificates.
  • Validity - certificate validity.
  • Reason - certificate invalidity reason.
  • DoContinue - specifies, whether to continue even if validation failed.

Certificate validity values:

Certificate validity reasons:


    This event is fired, when signed TSP response is received from the server, and signing certificate is included to the response. The application must validate the certificate and specify validation results via Validity and Reason parameters.

Discuss this help topic in SecureBlackbox Forum