Discuss this help topic in SecureBlackbox Forum

TElCMSSignature.OnOCSPResponseNeeded

TElCMSSignature     See also     


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


This event is fired during the signature validation.

Declaration

[C#]
    event TSBCMSOCSPResponseNeededEvent OnOCSPResponseNeeded;
    delegate void TSBCMSOCSPResponseNeededEvent(Object Sender, TElCMSOCSPResponsesID ID, TElX509Certificate Cert, ref TElOCSPResponse Ocsp);

[VB.NET]
    Event OnOCSPResponseNeeded As TSBCMSOCSPResponseNeededEvent
    Delegate Sub TSBCMSOCSPResponseNeededEvent(ByVal Sender As Object, ByVal ID As TElCMSOCSPResponsesID, ByVal Cert As TElX509Certificate, ByRef Ocsp As TElOCSPResponse)

[Pascal]
    property OnOCSPResponseNeeded: TSBCMSOCSPResponseNeededEvent;
    TSBCMSOCSPResponseNeededEvent = procedure(Sender : TObject; ID : TElCMSOCSPResponsesID; Cert : TElX509Certificate; var Ocsp : TElOCSPResponse) of object;

[C++]
    void get_OnOCSPResponseNeeded(TSBCMSOCSPResponseNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOCSPResponseNeeded(TSBCMSOCSPResponseNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCMSOCSPResponseNeededEvent)(void * _ObjectData, TObjectHandle Sender, TElCMSOCSPResponsesIDHandle ID, TElX509CertificateHandle Cert, TElOCSPResponseHandle &Ocsp);

[PHP]
    TSBCMSOCSPResponseNeededEvent|callable|NULL get_OnOCSPResponseNeeded()
    void set_OnOCSPResponseNeeded(TSBCMSOCSPResponseNeededEvent|callable|NULL $Value)
    callable TSBCMSOCSPResponseNeededEvent(TObject $Sender, TElCMSOCSPResponsesID $ID, TElX509Certificate $Cert, TElOCSPResponse &$Ocsp)

[Java]
    TSBCMSOCSPResponseNeededEvent getOnOCSPResponseNeeded();
    void setOnOCSPResponseNeeded(TSBCMSOCSPResponseNeededEvent Value);
    TSBCMSOCSPResponseNeededEvent.Callback OnOCSPResponseNeeded = new TSBCMSOCSPResponseNeededEvent.Callback() {
        public TElOCSPResponse TSBCMSOCSPResponseNeededEventCallback(TObject Sender, TElCMSOCSPResponsesID ID, TElX509Certificate Cert) {
            //...
        }
    }

Parameters

  • ID - identifier of the required OCSP response
  • Cert - certificate for which the OCSP response is needed
  • Ocsp - required OCSP response should be placed here

Description

    This event is fired by TElCMSSignature during signature validation if a required OCSP response is missing. User should provide the required response through Ocsp parameter. This event is fired once for each missing OCSP response.

See also:     Validate     OnCRLNeeded     OnCertificateNeeded    

Discuss this help topic in SecureBlackbox Forum