Package com.itextpdf.bouncycastle.tsp
Class TimeStampResponseGeneratorBC
java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampResponseGeneratorBC
- All Implemented Interfaces:
-
ITimeStampResponseGenerator
Wrapper class for
TimeStampResponseGenerator
.
-
Constructor Summary
ConstructorDescriptionTimeStampResponseGeneratorBC
(ITimeStampTokenGenerator tokenGenerator, Set<String> algorithms) Creates new wrapper instance forTimeStampResponseGenerator
.TimeStampResponseGeneratorBC
(org.bouncycastle.tsp.TimeStampResponseGenerator timeStampResponseGenerator) Creates new wrapper instance forTimeStampResponseGenerator
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.generate
(ITimeStampRequest request, BigInteger bigInteger, Date date) Calls actualgenerate
method for the wrapped TimeStampResponseGenerator object.org.bouncycastle.tsp.TimeStampResponseGenerator
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
TimeStampResponseGeneratorBC
public TimeStampResponseGeneratorBC(org.bouncycastle.tsp.TimeStampResponseGenerator timeStampResponseGenerator) Creates new wrapper instance forTimeStampResponseGenerator
.- Parameters:
-
timeStampResponseGenerator
-TimeStampResponseGenerator
to be wrapped
-
TimeStampResponseGeneratorBC
public TimeStampResponseGeneratorBC(ITimeStampTokenGenerator tokenGenerator, Set<String> algorithms) Creates new wrapper instance forTimeStampResponseGenerator
.- Parameters:
-
tokenGenerator
- TimeStampTokenGenerator wrapper -
algorithms
- set of algorithm strings
-
-
Method Details
-
getTimeStampResponseGenerator
public org.bouncycastle.tsp.TimeStampResponseGenerator getTimeStampResponseGenerator()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
TimeStampResponseGenerator
.
-
generate
public ITimeStampResponse generate(ITimeStampRequest request, BigInteger bigInteger, Date date) throws TSPExceptionBC Calls actualgenerate
method for the wrapped TimeStampResponseGenerator object.- Specified by:
-
generate
in interfaceITimeStampResponseGenerator
- Parameters:
-
request
- the wrapper for request this response is for -
bigInteger
- serial number for the response token -
date
- generation time for the response token - Returns:
-
ITimeStampResponse
the wrapper for the generated TimeStampResponse 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.
-