Discuss this help topic in SecureBlackbox Forum

TElCustomTSPClient.Timestamp

TElCustomTSPClient     See also     


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


Performs request to the server

Declaration

[C#/Java]
    int Timestamp(byte[] HashedData, out TSBPKIStatus ServerResult, out int FailureInfo, out byte[] ReplyCMS);

[VB.NET]
    Function Timestamp(ByVal HashedData As Byte(), Out ServerResult As TSBPKIStatus, Out FailureInfo As Integer, Out ReplyCMS As Byte()) As Integer

[Pascal]
    function Timestamp(const HashedData: ByteArray; out ServerResult: TSBPKIStatus; out FailureInfo: integer; out ReplyCMS : ByteArray) : Integer;

[C++]
    int32_t Timestamp(const std::vector<uint8_t> &HashedData, TSBPKIStatus &ServerResult, int32_t &FailureInfo, std::vector<uint8_t> &ReplyCMS);

[PHP]
    integer Timestamp(array of byte|string|NULL $HashedData, integer &$ServerResult, integer &$FailureInfo, array of byte|string &$ReplyCMS)

Parameters

  • HashedData - data hash (digest) to be timestamped
  • ServerResult - request execution result as returned by server
  • FailureInfo - error information as returned by server
  • ReplyCMS - timestamp signature body

FailureInfo possible values:




Return value

    TSP error code.

TSP error code values:


Description

    Use this method to perform TSP request. HashedData value size should be equal to the regular size, produced by HashAlgorithm. Reply CMS can be parsed with TSPInfo.ParseCMS method.

See also:     HashAlgorithm     IncludeCertificates     TSPInfo     ParseCMS    

Discuss this help topic in SecureBlackbox Forum