Package org.digidoc4j.impl.asic.cades
Class CadesTimestampingDssFacade
java.lang.Object
org.digidoc4j.impl.asic.cades.AbstractCadesDssFacade
org.digidoc4j.impl.asic.cades.CadesTimestampingDssFacade
Facade class for DSS CAdES timestamping functionality for ASiC containers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOcspSource(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPSource ocspSource) Configures this facade to use the specifiedOCSPSourcefor timestamping process.voidsetReferenceDigestAlgorithm(DigestAlgorithm digestAlgorithm) Configures this facade to hash references using the specified digest algorithm.voidsetTimestampDigestAlgorithm(DigestAlgorithm digestAlgorithm) Configures this facade to create timestamps using the specified digest algorithm.voidsetTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) Configures this facade to use the specifiedTSPSourcefor timestamping process.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.Methods inherited from class org.digidoc4j.impl.asic.cades.AbstractCadesDssFacade
setAiaSource, setCertificateSource, setContainerType
-
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 timestamptimestamps- list of previous timestamps to cover by the new timestamp- Returns:
- collection of documents representing the newly created timestamp
-
setTimestampDigestAlgorithm
Configures this facade to create timestamps using the specified digest algorithm.- Parameters:
digestAlgorithm- timestamp digest algorithm to use
-
setReferenceDigestAlgorithm
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 specifiedOCSPSourcefor timestamping process.- Parameters:
ocspSource- an instance ofOCSPSourceto use
-
setTspSource
public void setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) Configures this facade to use the specifiedTSPSourcefor timestamping process.- Parameters:
tspSource- an instance ofOCSPSourceto use
-