Discuss this help topic in SecureBlackbox Forum

TElCustomTSPClient.OnTSPError

TElCustomTSPClient     See also     


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


This event is fired when timestamping has failed.

Declaration

[C#]
    event TSBTSPErrorEvent OnTSPError;
    delegate void TSBTSPErrorEvent(Object Sender, int ResultCode, TSBPKIStatus ServerResult, int FailureInfo, string StatusString);

[VB.NET]
    Event OnTSPError As TSBTSPErrorEvent
    Delegate Sub TSBTSPErrorEvent(ByVal Sender As Object, ByVal ResultCode As Integer, ByVal ServerResult As TSBPKIStatus, Out FailureInfo As Integer, ByVal StatusString as String)

[Pascal]
    property OnTSPError : TSBTSPErrorEvent;
    TSBTSPErrorEvent = procedure (Sender : TObject; ResultCode : integer; ServerResult: TSBPKIStatus; FailureInfo: integer; StatusString : String) of object;

[C++]
    void get_OnTSPError(TSBTSPErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnTSPError(TSBTSPErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBTSPErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ResultCode, TSBPKIStatus ServerResult, int32_t FailureInfo, const std::string StatusString);

[PHP]
    TSBTSPErrorEvent|callable|NULL get_OnTSPError()
    void set_OnTSPError(TSBTSPErrorEvent|callable|NULL $Value)
    callable TSBTSPErrorEvent(TObject $Sender, integer $ResultCode, integer $ServerResult, integer $FailureInfo, string $StatusString)

[Java]
    TSBTSPErrorEvent getOnTSPError();
    void setOnTSPError(TSBTSPErrorEvent Value);
    TSBTSPErrorEvent.Callback OnTSPError = new TSBTSPErrorEvent.Callback() {
        public void TSBTSPErrorEventCallback(TObject Sender, int ResultCode, TSBPKIStatus ServerResult, int FailureInfo, string StatusString) {
            //...
        }
    }

Parameters

  • ResultCode - the error code returned by Timestamp method.
  • ServerResult - request execution result, returned by server. Corresponds to PKIStatus field in the TSP reply structure.
  • FailureInfo - error information as returned by server
  • StatusString - optional text message, returned by server. Corresponds to StatusString field in the TSP reply structure.

TSP error codes:

Description

    This event is triggered by Timestamp method when the result is non-zero. The event can be used in situations when timestamping is performed by the signature component rather than the application code. In this situation the application can know exactly what happened on timestamping step when it failed.

See also:     Timestamp    

Discuss this help topic in SecureBlackbox Forum