Package org.digidoc4j.impl.asic.cades
Class AsicContainerTimestampFinalizer
java.lang.Object
org.digidoc4j.impl.AbstractFinalizer
org.digidoc4j.impl.asic.cades.AsicContainerTimestampFinalizer
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AsicSContainerTimestampFinalizer
public abstract class AsicContainerTimestampFinalizer
extends org.digidoc4j.impl.AbstractFinalizer
Base class for finalizers of timestamp tokens for ASiC containers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinalizeTimestamp(List<UpdateableTimestampDocumentsHolder> existingTimestamps) Finalize and return a new timestamp based on the state of this finalizer and an optional list of existing timestamp tokens.
-
Method Details
-
finalizeTimestamp
public AsicContainerTimestamp finalizeTimestamp(List<UpdateableTimestampDocumentsHolder> existingTimestamps) Finalize and return a new timestamp based on the state of this finalizer and an optional list of existing timestamp tokens. Existing timestamp tokens, if any, will also be covered by the new timestamp token that this finalizer will create. NB: finalization process may also augment (some of) the existing timestamps presented in the list ofexistingTimestamps. NB: in case of using the same finalizer instance for creating multiple timestamps, each call to this method must provide an updated argument toexistingTimestamps(reflecting the changes caused by previous calls to this method).- Parameters:
existingTimestamps- optional list of existing timestamp tokens to take into account when creating a new timestamp- Returns:
- newly created timestamp token for ASiC containers
-