Class CadesTimestampingDssFacade

java.lang.Object
org.digidoc4j.impl.asic.cades.AbstractCadesDssFacade
org.digidoc4j.impl.asic.cades.CadesTimestampingDssFacade

public class CadesTimestampingDssFacade extends AbstractCadesDssFacade
Facade class for DSS CAdES timestamping functionality for ASiC containers.
  • Constructor Details

    • CadesTimestampingDssFacade

      public CadesTimestampingDssFacade()
  • Method Details

    • timestampContent

      public TimestampDocumentsHolder timestampContent(List<eu.europa.esig.dss.model.DSSDocument> dataFiles, List<UpdateableTimestampDocumentsHolder> timestamps)
      Creates a timestamp that covers the specified list of container datafiles and the specified list of previously existing timestamps. Existing timestamp tokens, if any, will also be covered by the new timestamp token that this finalizer will create. NB: timestamping process may also augment (some of) the existing timestamps presented in the list of existing timestamps.
      Parameters:
      dataFiles - list of datafiles to cover by the new timestamp
      timestamps - list of previous timestamps to cover by the new timestamp
      Returns:
      collection of documents representing the newly created timestamp
    • setTimestampDigestAlgorithm

      public void setTimestampDigestAlgorithm(DigestAlgorithm digestAlgorithm)
      Configures this facade to create timestamps using the specified digest algorithm.
      Parameters:
      digestAlgorithm - timestamp digest algorithm to use
    • setReferenceDigestAlgorithm

      public void setReferenceDigestAlgorithm(DigestAlgorithm digestAlgorithm)
      Configures this facade to hash references using the specified digest algorithm.
      Parameters:
      digestAlgorithm - reference digest algorithm to use
    • setOcspSource

      public void setOcspSource(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPSource ocspSource)
      Configures this facade to use the specified OCSPSource for timestamping process.
      Parameters:
      ocspSource - an instance of OCSPSource to use
    • setTspSource

      public void setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource)
      Configures this facade to use the specified TSPSource for timestamping process.
      Parameters:
      tspSource - an instance of OCSPSource to use