Discuss this help topic in SecureBlackbox Forum

TElX509CertificateValidator.OnOCSPError

TElX509CertificateValidator     See also     


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


This event is fired when the validator encounters an error during retrieving or parsing an OCSP response.

Declaration

[C#]
    event TSBCertificateValidatorOCSPErrorEvent OnOCSPError;
    delegate void TSBCertificateValidatorOCSPErrorEvent(Object Sender, TElX509Certificate Certificate, string Location, TElOCSPClient Client, int ErrorCode);

[VB.NET]
    Event OnOCSPError As TSBCertificateValidatorOCSPErrorEvent
    Delegate Sub TSBCertificateValidatorOCSPErrorEvent(ByVal Sender As Object, ByVal Certificate As TElX509Certificate, ByVal Location As String, ByVal Client As TElOCSPClient, ByVal ErrorCode As Integer)

[Pascal]
    property OnOCSPError : TSBCertificateValidatorOCSPErrorEvent;
    TSBCertificateValidatorOCSPErrorEvent = procedure (Sender: TObject; Certificate : TElX509Certificate; const Location : string; Client : TElOCSPClient; ErrorCode : integer) of object;

[C++]
    void get_OnOCSPError(TSBCertificateValidatorOCSPErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOCSPError(TSBCertificateValidatorOCSPErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBCertificateValidatorOCSPErrorEvent)(void * _ObjectData, TObjectHandle Sender, TElX509CertificateHandle Certificate, const char * pcLocation, int32_t szLocation, TElOCSPClientHandle Client, int32_t ErrorCode);

[PHP]
    TSBCertificateValidatorOCSPErrorEvent|callable|NULL get_OnOCSPError()
    void set_OnOCSPError(TSBCertificateValidatorOCSPErrorEvent|callable|NULL $Value)
    callable TSBCertificateValidatorOCSPErrorEvent(TObject $Sender, TElX509Certificate $Certificate, string $Location, TElOCSPClient $Client, integer $ErrorCode)

[Java]
    TSBCertificateValidatorOCSPErrorEvent getOnOCSPError();
    void setOnOCSPError(TSBCertificateValidatorOCSPErrorEvent Value);
    TSBCertificateValidatorOCSPErrorEvent.Callback OnOCSPError = new TSBCertificateValidatorOCSPErrorEvent.Callback() {
        public void TSBCertificateValidatorOCSPErrorEventCallback(TObject Sender, TElX509Certificate Certificate, String Location, TElOCSPClient Client, int ErrorCode) {
            //...
        }
    }

Parameters

  • Certificate - Specifies the certificate that is being validated.
  • Location - Location of the OCSP.
  • Client - An instance of TElOCSPClient class or its descendant.
  • ErrorCode - The error code.
  • pcLocation - Location of the OCSP.
  • szLocation - the length of pcLocation.

Description

    This event is fired when an error occurs during retrieving or processing OCSP response information.

See also:     CheckOCSP     OnCRLError    

Discuss this help topic in SecureBlackbox Forum