Class TimeStampResponseGeneratorBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampResponseGeneratorBCFips
- All Implemented Interfaces:
-
ITimeStampResponseGenerator
Wrapper class for
TimeStampResponseGenerator
.
-
Constructor Summary
ConstructorDescriptionTimeStampResponseGeneratorBCFips
(ITimeStampTokenGenerator tokenGenerator, Set<String> algorithms) Creates new wrapper instance forTimeStampResponseGenerator
.TimeStampResponseGeneratorBCFips
(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
-
TimeStampResponseGeneratorBCFips
public TimeStampResponseGeneratorBCFips(org.bouncycastle.tsp.TimeStampResponseGenerator timeStampResponseGenerator) Creates new wrapper instance forTimeStampResponseGenerator
.- Parameters:
-
timeStampResponseGenerator
-TimeStampResponseGenerator
to be wrapped
-
TimeStampResponseGeneratorBCFips
public TimeStampResponseGeneratorBCFips(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 TSPExceptionBCFips 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:
-
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.
-