Class TimeStampTokenGeneratorBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampTokenGeneratorBCFips
- All Implemented Interfaces:
-
ITimeStampTokenGenerator
Wrapper class for
TimeStampTokenGenerator
.
-
Constructor Summary
ConstructorDescriptionTimeStampTokenGeneratorBCFips
(ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) Creates new wrapper instance forTimeStampTokenGenerator
.TimeStampTokenGeneratorBCFips
(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
-
TimeStampTokenGeneratorBCFips
public TimeStampTokenGeneratorBCFips(org.bouncycastle.tsp.TimeStampTokenGenerator timeStampTokenGenerator) Creates new wrapper instance forTimeStampTokenGenerator
.- Parameters:
-
timeStampTokenGenerator
-TimeStampTokenGenerator
to be wrapped
-
TimeStampTokenGeneratorBCFips
public TimeStampTokenGeneratorBCFips(ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) throws TSPExceptionBCFips Creates new wrapper instance forTimeStampTokenGenerator
.- Parameters:
-
siGen
- SignerInfoGenerator wrapper -
dgCalc
- DigestCalculator wrapper -
policy
- ASN1ObjectIdentifier wrapper - Throws:
-
TSPExceptionBCFips
- 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 TSPExceptionBCFips 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:
-
TSPExceptionBCFips
-
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.
-