iText 8.0.4 API
iText.Signatures.ITSAClient Interface Reference

Time Stamp Authority client (caller) interface. More...

Inheritance diagram for iText.Signatures.ITSAClient:
iText.Signatures.TSAClientBouncyCastle

Public Member Functions

int  GetTokenSizeEstimate ()
  Get the time stamp estimated token size. More...
 
IDigest  GetMessageDigest ()
  Returns the IDigest to digest the data imprint More...
 
byte[]  GetTimeStampToken (byte[] imprint)
  Returns RFC 3161 timeStampToken. More...
 

Detailed Description

Time Stamp Authority client (caller) interface.

Time Stamp Authority client (caller) interface.

Interface used by the PdfPKCS7 digital signature builder to call Time Stamp Authority providing RFC 3161 compliant time stamp token.

Member Function Documentation

◆ GetMessageDigest()

IDigest iText.Signatures.ITSAClient.GetMessageDigest ( )

Returns the IDigest to digest the data imprint

Returns
The IDigest object.

Implemented in iText.Signatures.TSAClientBouncyCastle.

◆ GetTimeStampToken()

byte [] iText.Signatures.ITSAClient.GetTimeStampToken ( byte[]  imprint )

Returns RFC 3161 timeStampToken.

Parameters
imprint byte[] - data imprint to be time-stamped
Returns
byte[] - encoded, TSA signed data of the timeStampToken

Implemented in iText.Signatures.TSAClientBouncyCastle.

◆ GetTokenSizeEstimate()

int iText.Signatures.ITSAClient.GetTokenSizeEstimate ( )

Get the time stamp estimated token size.

Get the time stamp estimated token size. Implementation must return value large enough to accommodate the entire token returned by GetTimeStampToken(byte[]) prior to actual GetTimeStampToken(byte[]) call.

Returns
an estimate of the token size

Implemented in iText.Signatures.TSAClientBouncyCastle.