Class CAdESTimestampDataBuilder

    • Constructor Detail

      • CAdESTimestampDataBuilder

        protected CAdESTimestampDataBuilder​(org.bouncycastle.cms.SignerInformation signerInformation,
                                            List<DSSDocument> detachedDocuments)
      • CAdESTimestampDataBuilder

        public CAdESTimestampDataBuilder​(org.bouncycastle.cms.CMSSignedData cmsSignedData,
                                         org.bouncycastle.cms.SignerInformation signerInformation,
                                         List<DSSDocument> detachedDocuments,
                                         CadesLevelBaselineLTATimestampExtractor timestampExtractor)
    • Method Detail

      • getSignatureTimestampData

        public byte[] getSignatureTimestampData​(TimestampToken timestampToken)
        Description copied from interface: TimestampDataBuilder
        Returns the data (signature value) that was timestamped by the SignatureTimeStamp for the given timestamp.
        Specified by:
        getSignatureTimestampData in interface TimestampDataBuilder
        Returns:
        byte array representing the canonicalized data to be timestamped
      • getTimestampX1Data

        public byte[] getTimestampX1Data​(TimestampToken timestampToken)
        Description copied from interface: TimestampDataBuilder
        Returns the data to be time-stamped. The data contains the digital signature (XAdES example: ds:SignatureValue element), the signature time-stamp(s) present in the AdES-T form, the certification path references and the revocation status references.
        Specified by:
        getTimestampX1Data in interface TimestampDataBuilder
        Parameters:
        timestampToken - TimestampToken or null during the creation process
        Returns:
        byte array representing the canonicalized data to be timestamped
      • getTimestampX2Data

        public byte[] getTimestampX2Data​(TimestampToken timestampToken)
        Description copied from interface: TimestampDataBuilder
        Returns the data to be time-stamped which contains the concatenation of CompleteCertificateRefs and CompleteRevocationRefs elements (XAdES example).
        Specified by:
        getTimestampX2Data in interface TimestampDataBuilder
        Returns:
        byte array representing the canonicalized data to be timestamped
      • getArchiveTimestampData

        public byte[] getArchiveTimestampData​(TimestampToken timestampToken)
                                       throws DSSException
        Description copied from interface: TimestampDataBuilder
        Archive timestamp seals the data of the signature in a specific order. We need to retrieve the data for each timestamp.
        Specified by:
        getArchiveTimestampData in interface TimestampDataBuilder
        Parameters:
        timestampToken - null when adding a new archive timestamp
        Returns:
        byte array representing the canonicalized data to be timestamped
        Throws:
        DSSException