Interface ITimeStampTokenGenerator

  • All Known Implementing Classes:
    TimeStampTokenGeneratorBC

    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 Detail

      • 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,
                                 java.math.BigInteger bigInteger,
                                 java.util.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.