Package com.itextpdf.bouncycastle.tsp
Class TimeStampTokenGeneratorBC
java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampTokenGeneratorBC
- All Implemented Interfaces:
-
ITimeStampTokenGenerator
Wrapper class for
TimeStampTokenGenerator
.
-
Constructor Summary
ConstructorDescriptionTimeStampTokenGeneratorBC
(ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) Creates new wrapper instance forTimeStampTokenGenerator
.TimeStampTokenGeneratorBC
(org.bouncycastle.tsp.TimeStampTokenGenerator timeStampTokenGenerator) Creates new wrapper instance forTimeStampTokenGenerator
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCertificates
(IJcaCertStore jcaCertStore) Calls actualaddCertificates
method for the wrapped TimeStampTokenGenerator object.boolean
Indicates whether some other object is "equal to" this one.generate
(ITimeStampRequest request, BigInteger bigInteger, Date date) Calls actualgenerate
method for the wrapped TimeStampTokenGenerator object.org.bouncycastle.tsp.TimeStampTokenGenerator
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.void
setAccuracySeconds
(int i) Calls actualsetAccuracySeconds
method for the wrapped TimeStampTokenGenerator object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
TimeStampTokenGeneratorBC
public TimeStampTokenGeneratorBC(org.bouncycastle.tsp.TimeStampTokenGenerator timeStampTokenGenerator) Creates new wrapper instance forTimeStampTokenGenerator
.- Parameters:
-
timeStampTokenGenerator
-TimeStampTokenGenerator
to be wrapped
-
TimeStampTokenGeneratorBC
public TimeStampTokenGeneratorBC(ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) throws TSPExceptionBC Creates new wrapper instance forTimeStampTokenGenerator
.- Parameters:
-
siGen
- SignerInfoGenerator wrapper -
dgCalc
- DigestCalculator wrapper -
policy
- ASN1ObjectIdentifier wrapper - Throws:
-
TSPExceptionBC
- ifTSPException
occurs during wrapped object method call.
-
-
Method Details
-
getTimeStampTokenGenerator
public org.bouncycastle.tsp.TimeStampTokenGenerator getTimeStampTokenGenerator()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
TimeStampTokenGenerator
.
-
setAccuracySeconds
public void setAccuracySeconds(int i) Calls actualsetAccuracySeconds
method for the wrapped TimeStampTokenGenerator object.- Specified by:
-
setAccuracySeconds
in interfaceITimeStampTokenGenerator
- Parameters:
-
i
- accuracy seconds to set
-
addCertificates
Calls actualaddCertificates
method for the wrapped TimeStampTokenGenerator object.- Specified by:
-
addCertificates
in interfaceITimeStampTokenGenerator
- Parameters:
-
jcaCertStore
- the wrapper for the JcaCertStore to add
-
generate
public ITimeStampToken generate(ITimeStampRequest request, BigInteger bigInteger, Date date) throws TSPExceptionBC Calls actualgenerate
method for the wrapped TimeStampTokenGenerator object.- Specified by:
-
generate
in interfaceITimeStampTokenGenerator
- 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:
-
TSPExceptionBC
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-