Interface ITimeStampTokenGenerator

All Known Implementing Classes:
TimeStampTokenGeneratorBC, TimeStampTokenGeneratorBCFips

public interface ITimeStampTokenGenerator
This interface represents the wrapper for TimeStampTokenGenerator that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Calls actual addCertificates method for the wrapped TimeStampTokenGenerator object.
    generate(ITimeStampRequest request, BigInteger bigInteger, Date date)
    Calls actual generate method for the wrapped TimeStampTokenGenerator object.
    void
    Calls actual setAccuracySeconds method for the wrapped TimeStampTokenGenerator object.
  • Method Details

    • setAccuracySeconds

      void setAccuracySeconds (int i)
      Calls actual setAccuracySeconds method for the wrapped TimeStampTokenGenerator object.
      Parameters:
      i - accuracy seconds to set
    • addCertificates

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

      ITimeStampToken generate (ITimeStampRequest request, BigInteger bigInteger, Date date) throws AbstractTSPException
      Calls actual generate method for the wrapped TimeStampTokenGenerator object.
      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:
      AbstractTSPException - if TSPException occurs during wrapped object method call.