Discuss this help topic in SecureBlackbox Forum

TElX509CertificateValidator.OnBeforeOCSPClientUse

TElX509CertificateValidator     See also     


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


This event is fired before OCSP retriever is used.

Declaration

[C#]
    event TSBBeforeOCSPClientUseEvent OnBeforeOCSPClientUse;
    delegate void TSBBeforeOCSPClientUseEvent(Object Sender, TElX509Certificate Certificate, TElX509Certificate CACertificate, string OCSPLocation, ref TElOCSPClient OCSPClient);

[VB.NET]
    Event OnBeforeOCSPClientUse As TSBBeforeOCSPClientUseEvent
    Delegate Sub TSBBeforeOCSPClientUseEvent(ByVal Sender As Object, ByVal Certificate As TElX509Certificate, ByVal CACertificate As TElX509Certificate, ByVal OCSPLocation As String, ByRef OCSPClient As TElOCSPClient)

[Pascal]
    property OnBeforeOCSPClientUse : TSBBeforeOCSPClientUseEvent;
    TSBBeforeOCSPClientUseEvent = procedure (Sender: TObject; Certificate, CACertificate : TElX509Certificate; const OCSPLocation : string; var OCSPClient : TElOCSPClient) of object;

[C++]
    void get_OnBeforeOCSPClientUse(TSBBeforeOCSPClientUseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOCSPClientUse(TSBBeforeOCSPClientUseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBBeforeOCSPClientUseEvent)(void * _ObjectData, TObjectHandle Sender, TElX509CertificateHandle Certificate, TElX509CertificateHandle CACertificate, const char * pcOCSPLocation, int32_t szOCSPLocation, TElOCSPClientHandle &OCSPClient);

[PHP]
    TSBBeforeOCSPClientUseEvent|callable|NULL get_OnBeforeOCSPClientUse()
    void set_OnBeforeOCSPClientUse(TSBBeforeOCSPClientUseEvent|callable|NULL $Value)
    callable TSBBeforeOCSPClientUseEvent(TObject $Sender, TElX509Certificate $Certificate, TElX509Certificate $CACertificate, string $OCSPLocation, TElOCSPClient &$OCSPClient)

[Java]
    TSBBeforeOCSPClientUseEvent getOnBeforeOCSPClientUse();
    void setOnBeforeOCSPClientUse(TSBBeforeOCSPClientUseEvent Value);
    TSBBeforeOCSPClientUseEvent.Callback OnBeforeOCSPClientUse = new TSBBeforeOCSPClientUseEvent.Callback() {
        public TElOCSPClient TSBBeforeOCSPClientUseEventCallback(TObject Sender, TElX509Certificate Certificate, TElX509Certificate CACertificate, String OCSPLocation, TElOCSPClient OCSPClient) {
            //...
        }
    }

Parameters

  • Certificate - Specifies the certificate that is being validated.
  • CACertificate - Specifies the certificate, which signed Certificate.
    Can be nil / null / Nothing, if Certificate is self-signed.
  • OCSPLocation - Location of the OCSP responder
  • OCSPClient - An instance of TElOCSPClient class or its descendant. Can be empty, or can be replaced by some other instance.
  • pcOCSPLocation - Location of the OCSP responder
  • szOCSPLocation - the length of pcOCSPLocation.

Description

    This event is fired when the OCSP responder needs to be contacted. If you need, you can adjust the instance of TElOCSPClient class, which will be used to obtain OCSP response. If there's no instance available (OCSPClient parameter is nil / null / Nothing), you should create such instance and pass it via OCSPClient parameter. See description of TElX509CertificateValidator component for additional information about default HTTP OCSP client.

See also:     CheckOCSP    

Discuss this help topic in SecureBlackbox Forum