Class TimeStampTokenGeneratorBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampTokenGeneratorBCFips
All Implemented Interfaces:
ITimeStampTokenGenerator

public class TimeStampTokenGeneratorBCFips extends Object implements ITimeStampTokenGenerator
Wrapper class for TimeStampTokenGenerator.
  • Constructor Details

    • TimeStampTokenGeneratorBCFips

      public TimeStampTokenGeneratorBCFips (org.bouncycastle.tsp.TimeStampTokenGenerator timeStampTokenGenerator)
      Creates new wrapper instance for TimeStampTokenGenerator.
      Parameters:
      timeStampTokenGenerator - TimeStampTokenGenerator to be wrapped
    • TimeStampTokenGeneratorBCFips

      public TimeStampTokenGeneratorBCFips (ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) throws TSPExceptionBCFips
      Creates new wrapper instance for TimeStampTokenGenerator.
      Parameters:
      siGen - SignerInfoGenerator wrapper
      dgCalc - DigestCalculator wrapper
      policy - ASN1ObjectIdentifier wrapper
      Throws:
      TSPExceptionBCFips - if TSPException 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 actual setAccuracySeconds method for the wrapped TimeStampTokenGenerator object.
      Specified by:
      setAccuracySeconds in interface ITimeStampTokenGenerator
      Parameters:
      i - accuracy seconds to set
    • addCertificates

      public void addCertificates (IJcaCertStore jcaCertStore)
      Calls actual addCertificates method for the wrapped TimeStampTokenGenerator object.
      Specified by:
      addCertificates in interface ITimeStampTokenGenerator
      Parameters:
      jcaCertStore - the wrapper for the JcaCertStore to add
    • generate

      public ITimeStampToken generate (ITimeStampRequest request, BigInteger bigInteger, Date date) throws TSPExceptionBCFips
      Calls actual generate method for the wrapped TimeStampTokenGenerator object.
      Specified by:
      generate in interface ITimeStampTokenGenerator
      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

      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