Discuss this help topic in SecureBlackbox Forum

TElCustomTSPClient.OnCertificateValidate

TElCustomTSPClient     


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


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

Declaration

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

[VB.NET]
    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)

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

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

[PHP]
    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)

[Java]
    TSBCertificateValidationEvent getOnCertificateValidate();
    void setOnCertificateValidate(TSBCertificateValidationEvent Value);
    TSBCertificateValidationEvent.Callback OnCertificateValidate = new TSBCertificateValidationEvent.Callback() {
        public void TSBCertificateValidationEventCallback(TObject arg0, TElX509Certificate arg1, TElCustomCertStorage arg2, TElCertificateValidationEventParams arg3) {
            //...
        }
    }

Parameters

  • 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:

Description

    This event is fired, when signed TSP response is received from the server, and a 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