Interface ITimeStampTokenGenerator
- All Known Implementing Classes:
-
TimeStampTokenGeneratorBC
,TimeStampTokenGeneratorBCFips
public interface ITimeStampTokenGenerator
This interface represents the wrapper for TimeStampTokenGenerator that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCertificates
(IJcaCertStore jcaCertStore) Calls actualaddCertificates
method for the wrapped TimeStampTokenGenerator object.generate
(ITimeStampRequest request, BigInteger bigInteger, Date date) Calls actualgenerate
method for the wrapped TimeStampTokenGenerator object.void
setAccuracySeconds
(int i) Calls actualsetAccuracySeconds
method for the wrapped TimeStampTokenGenerator object.
-
Method Details
-
setAccuracySeconds
void setAccuracySeconds(int i) Calls actualsetAccuracySeconds
method for the wrapped TimeStampTokenGenerator object.- Parameters:
-
i
- accuracy seconds to set
-
addCertificates
Calls actualaddCertificates
method for the wrapped TimeStampTokenGenerator object.- Parameters:
-
jcaCertStore
- the wrapper for the JcaCertStore to add
-
generate
ITimeStampToken generate(ITimeStampRequest request, BigInteger bigInteger, Date date) throws AbstractTSPException Calls actualgenerate
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. - Throws:
-
AbstractTSPException
- if TSPException occurs during wrapped object method call.
-