Class TSPTimeStampService

  • All Implemented Interfaces:
    TimeStampService

    public class TSPTimeStampService
    extends java.lang.Object
    implements TimeStampService
    A TSP time-stamp service implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.ASN1ObjectIdentifier mapDigestAlgoToOID​(HashAlgorithm digestAlgo)
      Maps the digest algorithm to corresponding OID value.
      byte[] timeStamp​(SignatureInfo signatureInfo, byte[] data, RevocationData revocationData)
      Gives back the encoded time-stamp token for the given array of data bytes.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TSPTimeStampService

        public TSPTimeStampService()
    • Method Detail

      • mapDigestAlgoToOID

        public org.bouncycastle.asn1.ASN1ObjectIdentifier mapDigestAlgoToOID​(HashAlgorithm digestAlgo)
        Maps the digest algorithm to corresponding OID value.
      • timeStamp

        public byte[] timeStamp​(SignatureInfo signatureInfo,
                                byte[] data,
                                RevocationData revocationData)
                         throws java.lang.Exception
        Description copied from interface: TimeStampService
        Gives back the encoded time-stamp token for the given array of data bytes. We assume that the time-stamp token itself contains its full certificate chain required for proper validation.
        Specified by:
        timeStamp in interface TimeStampService
        data - the data to be time-stamped.
        revocationData - the optional container that needs to be filled up with the revocation data used to validate the TSA certificate chain.
        Returns:
        the DER encoded time-stamp token.
        Throws:
        java.lang.Exception - in case something went wrong.