Table of Contents

Interface ITsaClient

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

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. @author Martin Brunecky, 07/17/2007 @since 2.1.6

public interface ITsaClient

Methods

GetTimeStampToken(PdfPkcs7, byte[])

Get RFC 3161 timeStampToken. Method may return null indicating that timestamp should be skipped. @throws Exception - TSA request failed

byte[] GetTimeStampToken(PdfPkcs7 caller, byte[] imprint)

Parameters

caller PdfPkcs7

PdfPKCS7 - calling PdfPKCS7 instance (in case caller needs it)

imprint byte[]

byte[] - data imprint to be time-stamped

Returns

byte[]

byte[] - encoded, TSA signed data of the timeStampToken

GetTokenSizeEstimate()

Get the time stamp token size estimate. Implementation must return value large enough to accomodate the entire token returned by getTimeStampToken() prior to actual getTimeStampToken() call.

int GetTokenSizeEstimate()

Returns

int

an estimate of the token size