EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCustomTSPClient.Timestamp

TElCustomTSPClient     See also    


 

Performs request to the server

 
 

Declaration

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

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

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

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not implemented;
 
 

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
 
 

Return value

    TSP error code

 
 

TSP error code values:

Definition Value Description
SB_TSP_ERROR_ABORTED 83969 (0x14801) operation aborted
SB_TSP_ERROR_NO_REPLY 83970 (0x14802) no reply from server
SB_TSP_ERROR_NO_PARAMETERS 83971 (0x14803) no parameters
SB_TSP_ERROR_NO_CERTIFICATES 83972 (0x14804) no certificates
SB_TSP_ERROR_WRONG_DATA 83973 (0x14805) invalid response data
SB_TSP_ERROR_WRONG_IMPRINT 83974 (0x14806) wrong message imprint
SB_TSP_ERROR_WRONG_NONCE 83975 (0x14807) wrong nonce from server
SB_TSP_ERROR_UNEXPECTED_CERTIFICATES 83976 (0x14808) unexpected certificates
Declared in
[.NET] [Pascal]
Namespace: SBTSPCommon
Assembly: SecureBlackbox
Unit: SBTSPCommon

 
 

FailureInfo possible values:

[.NET] [Pascal] Description
pfiBadAlg = 0 pfiBadAlg unknown or unsupported algorithm
pfiBadMessageCheck = 1 pfiBadMessageCheck message check failed
pfiBadRequest = 2 pfiBadRequest transaction not permitted or supported
pfiBadTime = 3 pfiBadTime the TSA's time source is not available
pfiBadCertId = 4 pfiBadCertId bad certificate identifier
pfiBadDataFormat = 5 pfiBadDataFormat the data submitted has the wrong format
pfiWrongAuthority = 6 pfiWrongAuthority unknown or untrusted authority
pfiIncorrectData = 7 pfiIncorrectData incorrect request data
pfiMissingTimeStamp = 8 pfiMissingTimeStamp timestamp is missing
pfiBadPOP = 9 pfiBadPOP bad POP
Declared in
[.NET] [Pascal]
Namespace: SBPKICommon
Assembly: SecureBlackbox
Unit: SBPKICommon

[.NET] [Pascal] Description
psGranted= 0 psGranted when the PKIStatus contains the value zero a TimeStampToken, as requested, is present
psGrantedWithMods = 1 psGrantedWithMods when the PKIStatus contains the value one a TimeStampToken, with modifications, is present.
psRejection = 2 psRejection request is rejected
psWaiting = 3 psWaiting request is postponed
psRevocationWarning = 4 psRevocationWarning this message contains a warning that a revocation is imminent
psRevocationNotification = 5 psRevocationNotification notification that a revocation has occurred
psKeyUpdateWarning = 6 psKeyUpdateWarning key update warning
Declared in
[.NET] [Pascal]
Namespace: SBPKICommon
Assembly: SecureBlackbox
Unit: SBPKICommon

 
 

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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation