Class TimeStampResponseGeneratorBC

java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampResponseGeneratorBC
All Implemented Interfaces:
ITimeStampResponseGenerator

public class TimeStampResponseGeneratorBC extends Object implements ITimeStampResponseGenerator
Wrapper class for TimeStampResponseGenerator.
  • Constructor Details

    • TimeStampResponseGeneratorBC

      public TimeStampResponseGeneratorBC (org.bouncycastle.tsp.TimeStampResponseGenerator timeStampResponseGenerator)
      Creates new wrapper instance for TimeStampResponseGenerator.
      Parameters:
      timeStampResponseGenerator - TimeStampResponseGenerator to be wrapped
    • TimeStampResponseGeneratorBC

      public TimeStampResponseGeneratorBC (ITimeStampTokenGenerator tokenGenerator, Set<String> algorithms)
      Creates new wrapper instance for TimeStampResponseGenerator.
      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 actual generate method for the wrapped TimeStampResponseGenerator object.
      Specified by:
      generate in interface ITimeStampResponseGenerator
      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

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object