Class TimeStampResponseGeneratorBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampResponseGeneratorBCFips
- All Implemented Interfaces:
-
ITimeStampResponseGenerator
Wrapper class for
TimeStampResponseGenerator.
-
Constructor Summary
ConstructorsConstructorDescriptionTimeStampResponseGeneratorBCFips(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 TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.generate(ITimeStampRequest request, BigInteger bigInteger, Date date) Calls actualgeneratemethod for the wrapped TimeStampResponseGenerator object.org.bouncycastle.tsp.TimeStampResponseGeneratorGets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.toString()DelegatestoStringmethod call to the wrapped object.
-
Constructor Details
-
TimeStampResponseGeneratorBCFips
public TimeStampResponseGeneratorBCFips(org.bouncycastle.tsp.TimeStampResponseGenerator timeStampResponseGenerator) Creates new wrapper instance forTimeStampResponseGenerator.- Parameters:
-
timeStampResponseGenerator-TimeStampResponseGeneratorto 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 actualgeneratemethod for the wrapped TimeStampResponseGenerator object.- Specified by:
-
generatein 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:
-
ITimeStampResponsethe 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
DelegatestoStringmethod call to the wrapped object.
-