iText 9.8.0 API
iText.Commons.Bouncycastle.Tsp.ITimeStampTokenGenerator Interface Reference

This interface represents the wrapper for TimeStampTokenGenerator that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations. More...

Inheritance diagram for iText.Commons.Bouncycastle.Tsp.ITimeStampTokenGenerator:
iText.Bouncycastle.Tsp.TimeStampTokenGeneratorBC iText.Bouncycastlefips.Tsp.TimeStampTokenGeneratorBCFips

Public Member Functions

void  SetAccuracySeconds (int i)
  Calls actual setAccuracySeconds method for the wrapped TimeStampTokenGenerator object. More...
 
void  SetCertificates (IList< IX509Certificate > certificateChain)
  Creates certificates collection and calls actual SetCertificates method for the wrapped TimeStampTokenGenerator object. More...
 
ITimeStampToken  Generate (ITimeStampRequest request, IBigInteger bigInteger, DateTime date)
  Calls actual generate method for the wrapped TimeStampTokenGenerator object. More...
 

Detailed Description

This interface represents the wrapper for TimeStampTokenGenerator that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.

Member Function Documentation

◆ Generate()

ITimeStampToken iText.Commons.Bouncycastle.Tsp.ITimeStampTokenGenerator.Generate ( ITimeStampRequest  request,
IBigInteger  bigInteger,
DateTime  date 
)

Calls actual generate method for the wrapped TimeStampTokenGenerator object.

Parameters
request the originating TimeStampRequest wrapper
bigInteger serial number for the TimeStampToken
date token generation time
Returns

ITimeStampToken the wrapper for the generated TimeStampToken object.

Implemented in iText.Bouncycastle.Tsp.TimeStampTokenGeneratorBC, and iText.Bouncycastlefips.Tsp.TimeStampTokenGeneratorBCFips.

◆ SetAccuracySeconds()

void iText.Commons.Bouncycastle.Tsp.ITimeStampTokenGenerator.SetAccuracySeconds ( int  i )

Calls actual setAccuracySeconds method for the wrapped TimeStampTokenGenerator object.

Parameters
i accuracy seconds to set

Implemented in iText.Bouncycastle.Tsp.TimeStampTokenGeneratorBC, and iText.Bouncycastlefips.Tsp.TimeStampTokenGeneratorBCFips.

◆ SetCertificates()

void iText.Commons.Bouncycastle.Tsp.ITimeStampTokenGenerator.SetCertificates ( IList< IX509Certificate >  certificateChain )

Creates certificates collection and calls actual SetCertificates method for the wrapped TimeStampTokenGenerator object.

Parameters
certificateChain certificates collection to set

Implemented in iText.Bouncycastle.Tsp.TimeStampTokenGeneratorBC, and iText.Bouncycastlefips.Tsp.TimeStampTokenGeneratorBCFips.