Interface ITimeStampResponse

All Known Implementing Classes:
TimeStampResponseBC, TimeStampResponseBCFips

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

    Modifier and Type
    Method
    Description
    byte[]
    Calls actual getEncoded method for the wrapped TimeStampResponse object.
    Calls actual getFailInfo method for the wrapped TimeStampResponse object.
    Calls actual getStatusString method for the wrapped TimeStampResponse object.
    Calls actual getTimeStampToken method for the wrapped TimeStampResponse object.
    void
    Calls actual validate method for the wrapped TimeStampResponse object.
  • Method Details

    • validate

      void validate (ITimeStampRequest request) throws AbstractTSPException
      Calls actual validate method for the wrapped TimeStampResponse object.
      Parameters:
      request - TimeStampRequest wrapper
      Throws:
      AbstractTSPException - TSPException wrapper.
    • getFailInfo

      IPKIFailureInfo getFailInfo()
      Calls actual getFailInfo method for the wrapped TimeStampResponse object.
      Returns:
      IPKIFailureInfo the wrapper for the received PKIFailureInfo object.
    • getTimeStampToken

      ITimeStampToken getTimeStampToken()
      Calls actual getTimeStampToken method for the wrapped TimeStampResponse object.
      Returns:
      ITimeStampToken the wrapper for the received TimeStampToken object.
    • getStatusString

      String getStatusString()
      Calls actual getStatusString method for the wrapped TimeStampResponse object.
      Returns:
      status string.
    • getEncoded

      byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped TimeStampResponse object.
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.