![JAR search and dependency download from the Maven repository](/logo.png)
eu.europa.esig.dss.asic.signature.asice.DataToSignASiCEWithCAdESFromFiles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dss-asic-cades Show documentation
Show all versions of dss-asic-cades Show documentation
DSS ASiC with CAdES contains the code for the creation and validation of ASiC containers with CAdES signature(s).
package eu.europa.esig.dss.asic.signature.asice;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import eu.europa.esig.dss.DSSDocument;
import eu.europa.esig.dss.asic.ASiCWithCAdESSignatureParameters;
import eu.europa.esig.dss.asic.signature.GetDataToSignASiCWithCAdESHelper;
public class DataToSignASiCEWithCAdESFromFiles extends AbstractDataToSignASiCEWithCAdES implements GetDataToSignASiCWithCAdESHelper {
private final List filesToBeSigned;
private final ASiCWithCAdESSignatureParameters parameters;
private DSSDocument toBeSigned;
public DataToSignASiCEWithCAdESFromFiles(List filesToBeSigned, ASiCWithCAdESSignatureParameters parameters) {
this.filesToBeSigned = filesToBeSigned;
this.parameters = parameters;
}
@Override
public DSSDocument getToBeSigned() {
if (toBeSigned == null) {
toBeSigned = getASiCManifest(filesToBeSigned, Collections. emptyList(), Collections. emptyList(), parameters);
}
return toBeSigned;
}
@Override
public List getDetachedContents() {
return Collections.emptyList();
}
@Override
public String getSignatureFilename() {
return getSignatureFileName(parameters.aSiC(), Collections. emptyList());
}
@Override
public List getSignedDocuments() {
return filesToBeSigned;
}
@Override
public List getManifestFiles() {
return Arrays.asList(getToBeSigned());
}
@Override
public List getSignatures() {
return new ArrayList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy